{"id":76955,"date":"2025-05-01T10:30:35","date_gmt":"2025-05-01T01:30:35","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=76955"},"modified":"2025-04-28T10:33:10","modified_gmt":"2025-04-28T01:33:10","slug":"gitlab-duo%e3%81%a7ut%e3%82%92%e8%87%aa%e5%8b%95%e4%bd%9c%e6%88%90-gitlab-gitlabduo-ai","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955","title":{"rendered":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p><a href=\"https:\/\/about.gitlab.com\/ja-jp\/gitlab-duo\/\" target=\"_blank\" rel=\"noreferrer noopener\">GitLab Duo<\/a>\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002<br><a href=\"https:\/\/about.gitlab.com\/ja-jp\/gitlab-duo\/\" target=\"_blank\" rel=\"noreferrer noopener\">GitLab Duo<\/a>\u306b\u306f\u69d8\u3005\u306a\u6a5f\u80fd(<a href=\"https:\/\/docs.gitlab.com\/user\/gitlab_duo\/#summary-of-gitlab-duo-features\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e00\u89a7<\/a>)\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306fAI\u306b<a href=\"https:\/\/docs.gitlab.com\/user\/gitlab_duo_chat\/examples\/#write-tests-in-the-ide\" target=\"_blank\" rel=\"noreferrer noopener\">\u81ea\u52d5\u30c6\u30b9\u30c8(UT)\u3092\u4f5c\u6210\u3057\u3066\u3082\u3089\u3046\u6a5f\u80fd<\/a>\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30ec\u30f3\u30b8\u5185\u5bb9<\/h2>\n\n\n\n<p>\u4ee5\u524d\u4f5c\u6210\u3057\u305f<a href=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai-driven-dev\/70531\" target=\"_blank\" rel=\"noreferrer noopener\">\u5f01\u5f53\u6ce8\u6587\u30a2\u30d7\u30ea<\/a>\u306b\u5bfe\u3057\u3066GitLab Duo\u3092\u4f7f\u3063\u3066UT\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<br>\u4f5c\u6210\u3055\u308c\u305f\u81ea\u52d5\u30c6\u30b9\u30c8\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u3088\u304f\u3067\u304d\u3066\u3044\u308b\u70b9\u3084\u4fee\u6b63\u304c\u5fc5\u8981\u306a\u70b9\u3092\u8a55\u4fa1\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u307e\u305f\u3001GitHub Copilot\u3067\u306eUT\u81ea\u52d5\u4f5c\u6210\u3068\u3082\u6bd4\u8f03\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h3>\n\n\n\n<p>\u5f01\u5f53\u6ce8\u6587\u30a2\u30d7\u30ea\u306e\u30c6\u30b9\u30c8\u5bfe\u8c61\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import React, { useCallback, useState } from 'react';\nimport { mkConfig, generateCsv, download } from 'export-to-csv';\n\nimport awsExports from '.\/aws-exports';\nimport { Amplify } from 'aws-amplify';\nimport { generateClient } from 'aws-amplify\/api';\nimport { createBento } from '.\/graphql\/mutations';\nimport { CreateBentoInput } from '.\/API';\n\nimport I_hamburger from '.\/image\/28206674_s.jpg';\nimport I_karaage from '.\/image\/28796399_s.jpg';\nimport I_makunouchi from '.\/image\/28927123_s.jpg';\nimport I_hirekatsu from '.\/image\/28939604_s.jpg';\nimport { listBentos } from '.\/graphql\/queries';\n\nAmplify.configure(awsExports);\n\n\/\/ v0 by Vercel.\n\/\/ https:\/\/v0.dev\/t\/w1UzOcXfEI5\nexport default function Main() {\n  type Bento = {\n    id: number;\n    name: string;\n    imageUrl: string;\n  };\n  const bentoList: Bento&#91;] = &#91;\n    { id: 1, name: '\u30cf\u30f3\u30d0\u30fc\u30b0', imageUrl: I_hamburger },\n    { id: 2, name: '\u5510\u63da\u3052', imageUrl: I_karaage },\n    { id: 3, name: '\u5e55\u306e\u5185', imageUrl: I_makunouchi },\n    { id: 4, name: '\u30d2\u30ec\u30ab\u30c4', imageUrl: I_hirekatsu },\n  ];\n\n  const &#91;employeeNumber, setEmployeeNumber] = useState('');\n\n  const onClick: React.MouseEventHandler&lt;HTMLDivElement&gt; = useCallback(\n    async (e) =&gt; {\n      if (employeeNumber === '') {\n        alert('\u793e\u54e1\u756a\u53f7\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\n        return;\n      }\n\n      const bentoId = parseInt(e.currentTarget.dataset.bentoId ?? '');\n      const answer = confirm(bentoList.find((bento) =&gt; bento.id === bentoId)?.name + ' \u3092\u6ce8\u6587\u3057\u307e\u3059\u304b\uff1f');\n      if (!answer) {\n        return;\n      }\n\n      \/\/ \u6ce8\u6587\u51e6\u7406\u3002\n      const input: CreateBentoInput = {\n        date: Date.now(),\n        employeeNumber: employeeNumber,\n        bentoId: bentoId,\n      };\n      const response = await generateClient().graphql({ query: createBento, variables: { input: input } });\n      if (response.errors) {\n        throw new Error();\n      }\n\n      alert('\u6ce8\u6587\u3057\u307e\u3057\u305f\u3002');\n    },\n    &#91;employeeNumber],\n  );\n\n  const downloadCsv: React.MouseEventHandler&lt;HTMLButtonElement&gt; = async () =&gt; {\n    const csvConfig = mkConfig({\n      useKeysAsHeaders: true,\n      filename: 'orders',\n    });\n\n    const response = await generateClient().graphql({ query: listBentos });\n    if (response.errors) {\n      throw new Error();\n    }\n\n    type CsvRecord = {\n      date: string;\n      employeeNumber: string;\n      bentoId: number;\n    };\n    const records: CsvRecord&#91;] = response.data.listBentos.items.map((item) =&gt; {\n      return {\n        date: new Date(item.date).toJSON(),\n        employeeNumber: item.employeeNumber,\n        bentoId: item.bentoId,\n      };\n    });\n\n    const csv = generateCsv(csvConfig)(records);\n    download(csvConfig)(csv);\n  };\n\n  return (\n    &lt;div className=\"flex flex-col items-center justify-center min-h-screen py-12 space-y-4 md:py-24\"&gt;\n      &lt;div className=\"grid gap-4 w-full max-w-sm p-4 sm:max-w-md\"&gt;\n        &lt;div className=\"grid gap-2\"&gt;\n          &lt;label className=\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\" htmlFor=\"employee-number\"&gt;\n            Employee number\n          &lt;\/label&gt;\n          &lt;input\n            className=\"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\"\n            id=\"employee-number\"\n            placeholder=\"Enter employee number\"\n            value={employeeNumber}\n            onChange={(e) =&gt; setEmployeeNumber(e.target.value)}\n          \/&gt;\n        &lt;\/div&gt;\n\n        &lt;div className=\"grid gap-2 mt-10\"&gt;\n          &lt;label className=\"leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"&gt;Choose your bento&lt;\/label&gt;\n          &lt;div className=\"grid gap-2 md:grid-cols-2\"&gt;\n            {bentoList.map((bento) =&gt; (\n              &lt;div key={bento.id} data-bento-id={bento.id} className=\"flex items-center gap-2 cursor-pointer mt-2 bg-stone-800\" onClick={onClick}&gt;\n                &lt;img alt={bento.name} className=\"aspect-square rounded-md object-cover\" height=\"100\" src={bento.imageUrl} width=\"100\" \/&gt;\n                &lt;span className=\"text-center text-base\"&gt;{bento.name}&lt;\/span&gt;\n              &lt;\/div&gt;\n            ))}\n          &lt;\/div&gt;\n        &lt;\/div&gt;\n\n        &lt;button\n          className=\"mt-20 inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2\"\n          onClick={downloadCsv}&gt;\n          CSV output\n        &lt;\/button&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">UT\u81ea\u52d5\u4f5c\u6210<\/h2>\n\n\n\n<p>Visual Studio Code\u3067\u3001<code>main.tsx<\/code>\u306e\u5168\u4f53\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067GitLab Duo Chat\u4e0a\u306b\u300c<code>\/tests<\/code>\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002\u3057\u3070\u3089\u304f\u5f85\u3064\u3068UT\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u7d50\u679c\u304c\u9014\u4e2d\u3067\u5207\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f<code>\u7d9a\u304d<\/code>\u306a\u3069\u3068\u5165\u529b\u3057\u3066\u7d9a\u304d\u306e\u4f5c\u6210\u3092\u6307\u793a\u3057\u307e\u3059\u3002\u5b9f\u884c\u306e\u5ea6\u306b\u5185\u5bb9\u304c\u5c11\u3057\u5909\u308f\u308b\u306e\u3067\u3001\u4f55\u5ea6\u304b\u5b9f\u884c\u3057\u3066\u3001\u3071\u3063\u3068\u898b\u3067\u3088\u3055\u305d\u3046\u306a\u7d50\u679c\u306e\u3082\u306e\u3092\u63a1\u7528\u3057\u307e\u3057\u3087\u3046\u3002\u8a73\u3057\u3044\u78ba\u8a8d\u3068\u8abf\u6574\u306f\u5f8c\u307b\u3069\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22-1024x550.png\" alt=\"\" class=\"wp-image-77248\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22-1024x550.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22-360x194.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22-768x413.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22-1536x826.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-22.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7a7a\u306e<code>main.test.tsx<\/code>\u3092\u4f5c\u6210\u3057\u3001<code>Insert at cursor<\/code>\u3067\u4f5c\u6210\u3055\u308c\u305f\u7d50\u679c\u3092\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<code>\u7d9a\u304d<\/code>\u306a\u3069\u3068\u3057\u305f\u5834\u5408\u306f\u3001\u5207\u308c\u76ee\u306e\u90e8\u5206\u3067\u91cd\u8907\u306a\u3069\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23-1024x550.png\" alt=\"\" class=\"wp-image-77249\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23-1024x550.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23-360x194.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23-768x413.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23-1536x826.png 1536w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-23.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><code>import<\/code>\u3092\u8abf\u6574<\/h2>\n\n\n\n<p><code>import<\/code>\u6587\u306e\u3046\u3061\u4e0b\u8a18\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { createBento, listBentos } from '.\/graphql\/queries';<\/code><\/pre>\n\n\n\n<p>\u4fee\u6b63\u7d50\u679c\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { listBentos } from '.\/graphql\/queries';\nimport { createBento } from '.\/graphql\/mutations';<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u72b6\u6cc1\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u3053\u308c\u3067\u3001\u3072\u3068\u307e\u305a\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"467\" height=\"537\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-24.png\" alt=\"\" class=\"wp-image-77251\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-24.png 467w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-24-313x360.png 313w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/figure>\n\n\n\n<p><code>main.test.tsx<\/code>\u306b\u306f13\u500b\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u306e\u3046\u30614\u500b\u304c\u6210\u529f\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5f8c\u306f\u3001\u5931\u6557\u3057\u3066\u3044\u308b\u30c6\u30b9\u30c8\u3092\u4fee\u6b63\u3059\u308b\u524d\u306b\u3001\u5168\u4f53\u306e\u7406\u89e3\u3092\u9032\u3081\u307e\u3057\u3087\u3046\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u300c\u305d\u306e\u30c6\u30b9\u30c8\u304c\u305d\u3082\u305d\u3082\u4e0d\u8981\u306a\u3082\u306e\u3060\u3063\u305f\u300d\u306a\u3069\u3068\u3044\u3046\u3053\u3068\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5171\u901a\u306e\u30e2\u30c3\u30af\u51e6\u7406<\/h2>\n\n\n\n<p>\u5404<code>test<\/code>\u306e\u51e6\u7406\u524d\u306b\u5b9f\u884c\u3055\u308c\u308b\u5171\u901a\u306e\u30e2\u30c3\u30af\u51e6\u7406\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><code>aws-amplify<\/code>\u306e\u30e2\u30c3\u30af\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Mock AWS Amplify\njest.mock('aws-amplify', () =&gt; ({\n  Amplify: {\n    configure: jest.fn(),\n  },\n}));\n\n\/\/ Mock generateClient\njest.mock('aws-amplify\/api', () =&gt; ({\n  generateClient: jest.fn(),\n}));<\/code><\/pre>\n\n\n\n<p>Amplify\u306e\u30e2\u30c3\u30af\u5316\u3067\u3059\u3002\u30d5\u30ed\u30f3\u30c8\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c6\u30b9\u30c8\u306a\u306e\u3067\u3001API\u547c\u3073\u51fa\u3057\u90e8\u5206\u3092\u30e2\u30c3\u30af\u5316\u3059\u308b\u306e\u306f\u9069\u5207\u3067\u3059\u3002\u5185\u5bb9\u3082\u554f\u984c\u306a\u3055\u305d\u3046\u306b\u898b\u3048\u308b\u306e\u3067\u3001\u3044\u3063\u305f\u3093\u3053\u306e\u307e\u307e\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CSV\u51fa\u529b\u7528\u306e<code>export-to-csv<\/code>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30e2\u30c3\u30af\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Mock export-to-csv\njest.mock('export-to-csv', () =&gt; ({\n  mkConfig: jest.fn().mockReturnValue({}),\n  generateCsv: jest.fn().mockReturnValue(() =&gt; 'csv-content'),\n  download: jest.fn().mockReturnValue(() =&gt; {}),\n}));<\/code><\/pre>\n\n\n\n<p><code>export-to-csv<\/code>\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u6a5f\u80fd\u304c\u30e2\u30c3\u30af\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u5b9f\u88c5\u306f\u3001CSV\u306e\u751f\u6210\u306f\u5916\u90e8\u306b\u5bfe\u3057\u3066\u96a0\u853d\u3055\u308c\u3066\u304a\u308a\u3001\u30d6\u30e9\u30a6\u30b6\u3078\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3060\u3051\u304c\u5916\u90e8\u304b\u3089\u89b3\u6e2c\u53ef\u80fd\u3067\u3059\u3002UT\u3067\u306f\u751f\u6210\u3055\u308c\u305f\u7d50\u679c\u306eCSV\u306f\u78ba\u8a8d\u304c\u56f0\u96e3\u3067\u3059\u3057\u3001\u751f\u6210\u5185\u5bb9\u81ea\u4f53\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5b9f\u88c5\u3092\u4fe1\u3058\u308b\u3053\u3068\u306b\u3059\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u751f\u6210\u51e6\u7406\u304c\u9069\u5207\u306b\u547c\u3073\u51fa\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3060\u3051\u3092\u78ba\u8a8d\u3059\u308c\u3070\u5341\u5206\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u751f\u6210\u51e6\u7406\u3092\u30e2\u30c3\u30af\u5316\u3059\u308b\u306e\u306f\u3088\u3044\u65b9\u91dd\u3060\u3068\u8a00\u3048\u307e\u3059\u3002\u30e2\u30c3\u30af\u306e\u5185\u5bb9\u304c\u9069\u5207\u30fb\u5341\u5206\u304b\u306f\u307e\u3060\u5224\u65ad\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3044\u3063\u305f\u3093\u3053\u306e\u307e\u307e\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u753b\u50cf\u306e\u30e2\u30c3\u30af\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Mock image imports\njest.mock('.\/image\/28206674_s.jpg', () =&gt; 'hamburger-image-url');\njest.mock('.\/image\/28796399_s.jpg', () =&gt; 'karaage-image-url');\njest.mock('.\/image\/28927123_s.jpg', () =&gt; 'makunouchi-image-url');\njest.mock('.\/image\/28939604_s.jpg', () =&gt; 'hirekatsu-image-url');<\/code><\/pre>\n\n\n\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u9759\u7684\u306a\u753b\u50cf\u304c<code>import<\/code>\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u305d\u308c\u3089\u304c\u30e2\u30c3\u30af\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u753b\u50cf\u81ea\u4f53\u306fUT\u306e\u5bfe\u8c61\u3067\u306f\u306a\u304f\u3001\u30e2\u30c3\u30af\u5316\u3059\u308b\u3053\u3068\u3067UT\u306e\u5b9f\u884c\u304c\u9ad8\u901f\u5316\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305f\u3060\u3001\u30e2\u30c3\u30af\u5316\u304c\u5fc5\u9808\u3067\u306f\u306a\u3044\u3082\u306e\u3092\u30e2\u30c3\u30af\u5316\u3059\u308b\u3068UT\u304c\u8907\u96d1\u306b\u306a\u3063\u305f\u308a\u30c6\u30b9\u30c8\u306e\u4fe1\u983c\u6027\u304c\u4e0b\u304c\u3063\u305f\u308a\u3059\u308b\u6050\u308c\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u30ea\u30b9\u30af\u3092\u53d7\u5bb9\u3057\u3066\u307e\u3067\u9ad8\u901f\u5316\u3059\u308b\u610f\u5473\u3082\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u30e2\u30c3\u30af\u5316\u51e6\u7406\u306f\u524a\u9664\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u305d\u306e\u4ed6\u306e\u30e2\u30c3\u30af\u5316<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>describe('Main Component', () =&gt; {\n  const mockGraphqlClient = {\n    graphql: jest.fn(),\n  };\n\n  beforeEach(() =&gt; {\n    jest.clearAllMocks();\n    (generateClient as jest.Mock).mockReturnValue(mockGraphqlClient);\n    window.alert = jest.fn();\n    window.confirm = jest.fn();\n  });<\/code><\/pre>\n\n\n\n<p>Amplify\u306eGraphQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30e2\u30c3\u30af\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u7279\u306b\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3059\u3002<br>\u307e\u305f\u3001<code>alert<\/code>\u3068<code>confirm<\/code>\u304c\u30e2\u30c3\u30af\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u5b9f\u969b\u306b\u52d5\u4f5c\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u547c\u3073\u51fa\u3057\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u305f\u3044\u306e\u3067\u3001\u30e2\u30c3\u30af\u5316\u3059\u308b\u306e\u306f\u9069\u5207\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u5185\u5bb9\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">renders the component correctly<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('renders the component correctly', () =&gt; {\n    render(&lt;Main \/&gt;);\n\n    \/\/ Check if employee number input exists\n    expect(screen.getByLabelText(\/employee number\/i)).toBeInTheDocument();\n\n    \/\/ Check if all bento options are rendered\n    expect(screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0')).toBeInTheDocument();\n    expect(screen.getByText('\u5510\u63da\u3052')).toBeInTheDocument();\n    expect(screen.getByText('\u5e55\u306e\u5185')).toBeInTheDocument();\n    expect(screen.getByText('\u30d2\u30ec\u30ab\u30c4')).toBeInTheDocument();\n\n    \/\/ Check if CSV output button exists\n    expect(screen.getByText('CSV output')).toBeInTheDocument();\n  });<\/code><\/pre>\n\n\n\n<p>\u5bfe\u8c61\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u305f\u5f8c\u306b\u3001\u5404\u8981\u7d20\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u5927\u304d\u306a\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001<code>toBeInTheDocument<\/code>\u3067\u306f\u306a\u304f<code>toBeVisible<\/code>\u306e\u65b9\u304c\u3088\u308a\u5805\u3044\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">handles employee number input<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles employee number input', async () =&gt; {\n    render(&lt;Main \/&gt;);\n\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, '12345');\n\n    expect(input).toHaveValue('12345');\n  });<\/code><\/pre>\n\n\n\n<p>\u5165\u529b\u6b04\u3078\u306e\u5165\u529b\u304c\u6a5f\u80fd\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002controlled component\u306e\u5b9f\u88c5\u304c\u4e0d\u6b63\u3060\u3068\u610f\u56f3\u901a\u308a\u306b\u5165\u529b\u3067\u304d\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u3001\u3053\u306e\u30c6\u30b9\u30c8\u3082\u5b9f\u65bd\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002\u3053\u306e\u307e\u307e\u3067\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">shows alert when ordering without employee number<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('shows alert when ordering without employee number', async () =&gt; {\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click on a bento without entering employee number\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n    fireEvent.click(bentoItem!);\n\n    expect(window.alert).toHaveBeenCalledWith('\u793e\u54e1\u756a\u53f7\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\n  });<\/code><\/pre>\n\n\n\n<p>\u793e\u54e1\u756a\u53f7\u304c\u672a\u5165\u529b\u306e\u72b6\u614b\u3067\u5f01\u5f53\u4ed8\u8fd1\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002non-null assertion\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304c\u6c17\u6301\u3061\u60aa\u3044\u3067\u3059\u304c\u3001\u3082\u3057\u3082\u5bfe\u8c61\u8981\u7d20\u304c\u53d6\u5f97\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u7d50\u5c40\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306b\u5931\u6557\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u3053\u306e\u307e\u307e\u3067\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u30c6\u30b9\u30c8\u5185\u5bb9\u306f\u6982\u306d\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3059\u304c\u3001\u3088\u308a\u5805\u304f\u3059\u308b\u305f\u3081\u306b\u300c\u6ce8\u6587API\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u300d\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    expect(window.alert).toHaveBeenCalledWith('\u793e\u54e1\u756a\u53f7\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002');\n <strong>   expect(mockGraphqlClient.graphql).not.toHaveBeenCalled();<\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">handles bento order with confirmation<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles bento order with confirmation', async () =&gt; {\n    mockGraphqlClient.graphql.mockResolvedValueOnce({ data: { createBento: { id: 'new-id' } } });\n    (window.confirm as jest.Mock).mockReturnValueOnce(true);\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter employee number\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, '12345');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n    fireEvent.click(bentoItem!);\n\n    \/\/ Check if confirmation was shown\n    expect(window.confirm).toHaveBeenCalledWith('\u30cf\u30f3\u30d0\u30fc\u30b0 \u3092\u6ce8\u6587\u3057\u307e\u3059\u304b\uff1f');\n\n    \/\/ Check if API was called with correct parameters\n    await waitFor(() =&gt; {\n      expect(mockGraphqlClient.graphql).toHaveBeenCalledWith({\n        query: createBento,\n        variables: {\n          input: expect.objectContaining({\n            employeeNumber: '12345',\n            bentoId: 1,\n          }),\n        },\n      });\n    });\n\n    \/\/ Check if success message was shown\n    expect(window.alert).toHaveBeenCalledWith('\u6ce8\u6587\u3057\u307e\u3057\u305f\u3002');\n  });<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30c6\u30b9\u30c8\u306f\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002\u5931\u6557\u3057\u3066\u3044\u308b\u90e8\u5206\u3092\u78ba\u8a8d\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u5168\u4f53\u306e\u30c6\u30b9\u30c8\u5185\u5bb9\u304c\u9069\u5207\u304b\u3092\u7406\u89e3\u3057\u306a\u3044\u3068\u610f\u5473\u304c\u306a\u3044\u306e\u3067\u3001\u4e0a\u304b\u3089\u9806\u306b\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br>\u793e\u54e1\u756a\u53f7\u3092\u5165\u529b\u5f8c\u306b\u30cf\u30f3\u30d0\u30fc\u30b0\u5f01\u5f53\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u300c\u30cf\u30f3\u30d0\u30fc\u30b0 \u3092\u6ce8\u6587\u3057\u307e\u3059\u304b\uff1f\u300d\u306e\u78ba\u8a8d\u304c\u8868\u793a\u3055\u308c\u3066\u304b\u3089\u6ce8\u6587API\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u6700\u5f8c\u306b\u300c\u6ce8\u6587\u3057\u307e\u3057\u305f\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002\u6b63\u5e38\u306a\u6ce8\u6587\u51e6\u7406\u306e\u78ba\u8a8d\u3067\u3059\u3002\u5185\u5bb9\u306f\u554f\u984c\u306a\u3055\u305d\u3046\u3067\u3059\u304c\u3001\u6700\u5f8c\u306e\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u3067\u300c1\u5ea6\u3082\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u306a\u3044\u300d\u3068\u3044\u3046\u5185\u5bb9\u3067\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002<br><code>fireEvent.click<\/code>\u306b\u3088\u308a<code>click<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u304c\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u5185\u306e\u975e\u540c\u671f\u51e6\u7406(<code>graphql<\/code>\u30e1\u30bd\u30c3\u30c9)\u304c\u5b8c\u4e86\u3059\u308b\u524d\u306b\u5f8c\u7d9a\u51e6\u7406\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u539f\u56e0\u3067\u3059\u3002<code>waitFor<\/code>\u3092\u4f7f\u3046\u624b\u3082\u3042\u308a\u307e\u3059\u304c\u3001<code>userEvent<\/code>\u3092\u4f7f\u3046\u3068\u7c21\u5358\u306a\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    const user = userEvent.setup();\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter employee number\n    const input = screen.getByLabelText(\/employee number\/i);\n    await user.type(input, '12345');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n    await user.click(bentoItem!);<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u3001\u3053\u306e\u30c6\u30b9\u30c8\u306f\u6210\u529f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002API\u547c\u3073\u51fa\u3057\u90e8\u5206\u306e<code>waitFor<\/code>\u3082\u4e0d\u8981\u306b\u306a\u308b\u306e\u3067\u3001\u30e9\u30c3\u30d7\u3092\u5ec3\u6b62\u3057\u3066\u5358\u7d14\u306a<code>expect<\/code>\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br>\u4ed6\u306e\u30c6\u30b9\u30c8\u306e<code>fireEvent<\/code>\u3082\u5168\u3066<code>userEvent<\/code>\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u306b\u898b\u3066\u304d\u305f\u30c6\u30b9\u30c8\u3082\u5168\u3066\u66f8\u304d\u63db\u3048\u3066\u304a\u304d\u307e\u3059\u3002\u540c\u69d8\u306b\u3001<code>await userEvent.type<\/code>\u306f<code>await user.type<\/code>\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">cancels bento order when confirmation is declined<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('cancels bento order when confirmation is declined', async () =&gt; {\n    (window.confirm as jest.Mock).mockReturnValueOnce(false);\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter employee number\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, '12345');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u5510\u63da\u3052').closest('div');\n    fireEvent.click(bentoItem!);\n\n    \/\/ Check if confirmation was shown\n    expect(window.confirm).toHaveBeenCalledWith('\u5510\u63da\u3052 \u3092\u6ce8\u6587\u3057\u307e\u3059\u304b\uff1f');\n\n    \/\/ Check that API was not called\n    expect(mockGraphqlClient.graphql).not.toHaveBeenCalled();\n  });<\/code><\/pre>\n\n\n\n<p>\u5148\u307b\u3069\u3068\u540c\u69d8\u306e\u5185\u5bb9\u3067\u3059\u304c\u3001\u6ce8\u6587\u306e\u78ba\u8a8d\u6642\u306b\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u30c6\u30b9\u30c8\u3067\u3059\u3002\u30ad\u30e3\u30f3\u30bb\u30eb\u5f8c\u306b\u6ce8\u6587API\u304c\u547c\u3073\u51fa\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<code>fireEvent<\/code>\u306f\u5168\u3066<code>userEvent<\/code>\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">handles CSV download<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles CSV download', async () =&gt; {\n    const mockBentoItems = &#91;\n      { date: 1625097600000, employeeNumber: '12345', bentoId: 1 },\n      { date: 1625184000000, employeeNumber: '67890', bentoId: 2 },\n    ];\n\n    mockGraphqlClient.graphql.mockResolvedValueOnce({\n      data: {\n        listBentos: {\n          items: mockBentoItems,\n        },\n      },\n    });\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click CSV output button\n    const csvButton = screen.getByText('CSV output');\n    fireEvent.click(csvButton);\n\n    \/\/ Check if API was called\n    await waitFor(() =&gt; {\n      expect(mockGraphqlClient.graphql).toHaveBeenCalledWith({\n        query: listBentos,\n      });\n    });\n\n    \/\/ Check if CSV generation was called with correct data\n    const { mkConfig, generateCsv, download } = require('export-to-csv');\n    expect(mkConfig).toHaveBeenCalled();\n    expect(generateCsv).toHaveBeenCalled();\n    expect(download).toHaveBeenCalled();\n  });<\/code><\/pre>\n\n\n\n<p>CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5bfe\u8c61\u306e\u30c7\u30fc\u30bf\u3092API\u30e2\u30c3\u30af\u304b\u3089\u53d6\u5f97\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u3053\u3068\u3068\u3001CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u7528\u306e\u6a5f\u80fd\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e2\u30c3\u30af\u306e\u8a2d\u5b9a\u304c\u304a\u304b\u3057\u3044\u305f\u3081\u3001\u30c6\u30b9\u30c8\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<code>generateCsv<\/code>\u3068<code>download<\/code>\u306f\u95a2\u6570\u3092\u8fd4\u3059\u95a2\u6570\u306a\u306e\u3067\u3001\u5192\u982d\u3067\u78ba\u8a8d\u3057\u3066\u3042\u3063\u305f\u30e2\u30c3\u30af\u3092\u305d\u306e\u3088\u3046\u306b\u4f5c\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Mock export-to-csv\njest.mock('export-to-csv', () =&gt; {\n  const generateCsvCore = jest.fn();\n  const downloadCore = jest.fn();\n  return {\n    mkConfig: jest.fn().mockReturnValue({}),\n    generateCsv: () =&gt; generateCsvCore,\n    download: () =&gt; downloadCore,\n  };\n});<\/code><\/pre>\n\n\n\n<p>\u30c6\u30b9\u30c8\u672c\u4f53\u3082\u3001<code>generateCsv<\/code>\u3084<code>download<\/code>\u304c\u8fd4\u3057\u305f\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u5b9f\u969b\u306bCSV\u306e\u751f\u6210\u3084\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u884c\u3046\u305f\u3081\u306e\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \/\/ Check if CSV generation was called with correct data\n    const { mkConfig, generateCsv, download } = require('export-to-csv');\n    expect(mkConfig).toHaveBeenCalled();\n    expect(generateCsv()).toHaveBeenCalled();\n    expect(download()).toHaveBeenCalled();<\/code><\/pre>\n\n\n\n<p>\u3042\u3068\u306f<code>fireEvent<\/code>\u3092<code>userEvent<\/code>\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3053\u306e\u30c6\u30b9\u30c8\u306f\u6210\u529f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">handles API error during order creation<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles API error during order creation', async () =&gt; {\n    mockGraphqlClient.graphql.mockResolvedValueOnce({ errors: &#91;{ message: 'API Error' }] });\n    (window.confirm as jest.Mock).mockReturnValueOnce(true);\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter employee number\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, '12345');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n\n    \/\/ Expect error to be thrown\n    await expect(async () =&gt; {\n      fireEvent.click(bentoItem!);\n      await waitFor(() =&gt; {\n        expect(mockGraphqlClient.graphql).toHaveBeenCalled();\n      });\n    }).rejects.toThrow();\n  });<\/code><\/pre>\n\n\n\n<p>\u6ce8\u6587API\u304c\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u3066\u304d\u305f\u5834\u5408\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u3053\u306e\u30c6\u30b9\u30c8\u306f<code>throw new Error<\/code>\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u5185\u5bb9\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3059\u3002<code>rejects.toThrow()<\/code>\u3068\u3044\u3046\u8a18\u8ff0\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3067\u306f\u610f\u56f3\u901a\u308a\u6a5f\u80fd\u3057\u3066\u3044\u307e\u305b\u3093\u3002<code>userEvent<\/code>\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u3068\u6210\u529f\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \/\/ Expect error to be thrown\n    expect(() =&gt; {\n      user.click(csvButton);\n\n      expect(mockGraphqlClient.graphql).toHaveBeenCalled();\n    }).toThrow();<\/code><\/pre>\n\n\n\n<p>API\u547c\u3073\u51fa\u3057\u306e\u5f8c\u3067\u6210\u529f\u306e\u8868\u793a\u3092\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3082\u78ba\u8a8d\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    expect(() =&gt; {\n      user.click(bentoItem!);\n\n      expect(mockGraphqlClient.graphql).toHaveBeenCalled();\n<strong>      expect(window.alert).not.toHaveBeenCalledWith('\u6ce8\u6587\u3057\u307e\u3057\u305f\u3002');\n<\/strong>    }).toThrow();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">handles API error during CSV download<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles API error during CSV download', async () =&gt; {\n    mockGraphqlClient.graphql.mockResolvedValueOnce({ errors: &#91;{ message: 'API Error' }] });\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click CSV output button\n    const csvButton = screen.getByText('CSV output');\n\n    \/\/ Expect error to be thrown\n    await expect(async () =&gt; {\n      fireEvent.click(csvButton);\n      await waitFor(() =&gt; {\n        expect(mockGraphqlClient.graphql).toHaveBeenCalled();\n      });\n    }).rejects.toThrow();\n  });<\/code><\/pre>\n\n\n\n<p>CSV\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6642\u306b\u3001\u5bfe\u8c61\u30c7\u30fc\u30bf\u53d6\u5f97\u7528\u306eAPI\u304c\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u305f\u5834\u5408\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u5148\u307b\u3069\u3068\u540c\u69d8\u306b\u3001<code>userEvent<\/code>\u3092\u4f7f\u3063\u3066<code>rejects.toThrow()<\/code>\u3092<code>toThrow()<\/code>\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u51e6\u7406\u304c\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306e\u78ba\u8a8d\u3092\u8ffd\u52a0\u3057\u3066\u3082\u3088\u3044\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">formats date correctly for CSV export<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('formats date correctly for CSV export', async () =&gt; {\n    const mockBentoItems = &#91;{ date: 1625097600000, employeeNumber: '12345', bentoId: 1 }];\n\n    mockGraphqlClient.graphql.mockResolvedValueOnce({\n      data: {\n        listBentos: {\n          items: mockBentoItems,\n        },\n      },\n    });\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click CSV output button\n    const csvButton = screen.getByText('CSV output');\n    fireEvent.click(csvButton);\n\n    \/\/ Check if API was called\n    await waitFor(() =&gt; {\n      expect(mockGraphqlClient.graphql).toHaveBeenCalledWith({\n        query: listBentos,\n      });\n    });\n\n    \/\/ Check if date was formatted correctly\n    const { generateCsv } = require('export-to-csv');\n    expect(generateCsv).toHaveBeenCalledWith(\n      expect.arrayContaining(&#91;\n        expect.objectContaining({\n          date: expect.any(String), \/\/ Should be formatted as string\n          employeeNumber: '12345',\n          bentoName: '\u30cf\u30f3\u30d0\u30fc\u30b0', \/\/ Should map bentoId to name\n        }),\n      ]),\n    );\n  });<\/code><\/pre>\n\n\n\n<p>CSV\u51fa\u529b\u5185\u5bb9\u306e\u78ba\u8a8d\u3067\u3059\u3002\u3053\u3053\u307e\u3067\u306b\u898b\u3066\u304d\u305f\u3082\u306e\u3068\u540c\u69d8\u306e\u554f\u984c\u306f\u540c\u3058\u3088\u3046\u306b\u76f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u90e8\u5206\u306e\u8a18\u8ff0\u304c\u4e0d\u6b63\u3067\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u305d\u306e\u969b\u3001\u30e2\u30c3\u30af\u30c7\u30fc\u30bf\u3082\u308f\u304b\u308a\u3084\u3059\u3044\u5185\u5bb9\u306b\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    const mockBentoItems = &#91;\n      {\n        date: new Date(new Date(2024, 11, 31, 23, 59, 58, 123).getTime() - new Date().getTimezoneOffset() * 60 * 1000),\n        employeeNumber: '12345',\n        bentoId: 1,\n      },\n    ];<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>    expect(generateCsv()).toHaveBeenCalledWith(&#91;\n      {\n        date: '2024-12-31T23:59:58.123Z',\n        employeeNumber: '12345',\n        bentoId: 1,\n      },\n    ]);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">maps bentoId to correct bento name in CSV export<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('maps bentoId to correct bento name in CSV export', async () =&gt; {\n    const mockBentoItems = &#91;\n      { date: 1625097600000, employeeNumber: '12345', bentoId: 1 },\n      { date: 1625097600000, employeeNumber: '12345', bentoId: 2 },\n      { date: 1625097600000, employeeNumber: '12345', bentoId: 3 },\n      { date: 1625097600000, employeeNumber: '12345', bentoId: 4 },\n    ];\n\n    mockGraphqlClient.graphql.mockResolvedValueOnce({\n      data: {\n        listBentos: {\n          items: mockBentoItems,\n        },\n      },\n    });\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click CSV output button\n    const csvButton = screen.getByText('CSV output');\n    fireEvent.click(csvButton);\n\n    \/\/ Check if API was called\n    await waitFor(() =&gt; {\n      expect(mockGraphqlClient.graphql).toHaveBeenCalledWith({\n        query: listBentos,\n      });\n    });\n\n    \/\/ Check if bentoIds were mapped to correct names\n    const { generateCsv } = require('export-to-csv');\n    const expectedData = &#91;\n      { date: expect.any(String), employeeNumber: '12345', bentoName: '\u30cf\u30f3\u30d0\u30fc\u30b0' },\n      { date: expect.any(String), employeeNumber: '12345', bentoName: '\u5510\u63da\u3052' },\n      { date: expect.any(String), employeeNumber: '12345', bentoName: '\u5e55\u306e\u5185' },\n      { date: expect.any(String), employeeNumber: '12345', bentoName: '\u30d2\u30ec\u30ab\u30c4' },\n    ];\n\n    expect(generateCsv).toHaveBeenCalledWith(expect.arrayContaining(expectedData));\n  });<\/code><\/pre>\n\n\n\n<p>CSV\u51fa\u529b\u6642\u306b\u5f01\u5f53ID\u304c\u5f01\u5f53\u540d\u306b\u5909\u63db\u3055\u308c\u3066\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u305f\u3060\u3001\u5148\u307b\u3069\u306e\u30c6\u30b9\u30c8\u3067\u3082\u898b\u305f\u3068\u304a\u308a\u3001\u305d\u3082\u305d\u3082CSV\u51fa\u529b\u306f\u300c\u5f01\u5f53ID\u306e\u307e\u307e\u51fa\u529b\u3059\u308b\u300d\u3068\u3044\u3046\u4ed5\u69d8\u3067\u3059\u3002\u5f93\u3063\u3066\u3053\u306e\u30c6\u30b9\u30c8\u306f\u4e0d\u8981\u306a\u305f\u3081\u3001\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">handles empty response from listBentos<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('handles empty response from listBentos', async () =&gt; {\n    mockGraphqlClient.graphql.mockResolvedValueOnce({\n      data: {\n        listBentos: {\n          items: &#91;],\n        },\n      },\n    });\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Click CSV output button\n    const csvButton = screen.getByText('CSV output');\n    fireEvent.click(csvButton);\n\n    \/\/ Check if API was called\n    await waitFor(() =&gt; {\n      expect(mockGraphqlClient.graphql).toHaveBeenCalledWith({\n        query: listBentos,\n      });\n    });\n\n    \/\/ Check if CSV generation was called with empty array\n    const { generateCsv } = require('export-to-csv');\n    expect(generateCsv).toHaveBeenCalledWith(&#91;]);\n  });<\/code><\/pre>\n\n\n\n<p>CSV\u51fa\u529b\u3067\u5bfe\u8c61\u30c7\u30fc\u30bf\u304c0\u4ef6\u306e\u5834\u5408\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u3053\u3053\u307e\u3067\u898b\u3066\u304d\u305f\u5185\u5bb9\u3092\u8e0f\u307e\u3048\u3066<code>fireEvent<\/code>\u3068<code>generateCsv<\/code>\u3092\u8abf\u6574\u3059\u308b\u3060\u3051\u3067\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">clears employee number input after successful order<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('clears employee number input after successful order', async () =&gt; {\n    mockGraphqlClient.graphql.mockResolvedValueOnce({ data: { createBento: { id: 'new-id' } } });\n    (window.confirm as jest.Mock).mockReturnValueOnce(true);\n\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter employee number\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, '12345');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n    fireEvent.click(bentoItem!);\n\n    \/\/ Check if input was cleared after successful order\n    await waitFor(() =&gt; {\n      expect(input).toHaveValue('');\n    });\n  });<\/code><\/pre>\n\n\n\n<p>\u6ce8\u6587\u6210\u529f\u5f8c\u306b\u793e\u54e1\u756a\u53f7\u306e\u5165\u529b\u6b04\u3092\u7a7a\u306b\u3067\u304d\u3066\u3044\u308b\u304b\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u305f\u3060\u3001\u305d\u306e\u3088\u3046\u306a\u4ed5\u69d8(\u5b9f\u88c5)\u306f\u306a\u3044\u305f\u3081\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c6\u30b9\u30c8\u306f\u4e0d\u8981\u306a\u305f\u3081\u3001\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">validates employee number format<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  test('validates employee number format', async () =&gt; {\n    render(&lt;Main \/&gt;);\n\n    \/\/ Enter invalid employee number (non-numeric)\n    const input = screen.getByLabelText(\/employee number\/i);\n    await userEvent.type(input, 'abc123');\n\n    \/\/ Click on a bento\n    const bentoItem = screen.getByText('\u30cf\u30f3\u30d0\u30fc\u30b0').closest('div');\n    fireEvent.click(bentoItem!);\n\n    \/\/ Check if validation alert was shown\n    expect(window.alert).toHaveBeenCalledWith('\u793e\u54e1\u756a\u53f7\u306f\u6570\u5b57\u306e\u307f\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002');\n  });<\/code><\/pre>\n\n\n\n<p>\u793e\u54e1\u756a\u53f7\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u30c6\u30b9\u30c8\u306f\u5931\u6557\u3057\u307e\u3059\u3002\u3053\u306e\u30c6\u30b9\u30c8\u306f\u4e0d\u8981\u306a\u305f\u3081\u3001\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30b9\u30c8\u306e\u904e\u4e0d\u8db3<\/h2>\n\n\n\n<p>\u5404\u30c6\u30b9\u30c8\u3067\u306e\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306e\u5f37\u5316\u306a\u3069\u306f\u3001\u3053\u3053\u307e\u3067\u306b\u898b\u3066\u304d\u305f\u901a\u308a\u3067\u3059\u3002\u5168\u4f53\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306f\u3001\u4e0d\u8981\u306a\u3082\u306e\u304c\u82e5\u5e72\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u4e0d\u8db3\u306f\u306a\u3055\u305d\u3046\u3067\u3059\u3002\u6700\u7d42\u7684\u306b10\u500b\u306e\u30b1\u30fc\u30b9\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"465\" height=\"475\" src=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-25.png\" alt=\"\" class=\"wp-image-77257\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-25.png 465w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/04\/image-25-352x360.png 352w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>GitLab Duo\u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u81ea\u52d5\u4f5c\u6210\u5168\u4f53\u306e\u632f\u308a\u8fd4\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u57fa\u672c\u7684\u306a\u6587\u6cd5\u30df\u30b9\u306f\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u3002<\/li>\n\n\n\n<li><code>import<\/code>\u5143\u306e\u30df\u30b9\u304c1\u4ef6\u3060\u3051\u3042\u3063\u305f\u3002<\/li>\n\n\n\n<li>\u81ea\u524d\u3067\u5b9f\u88c5\u3059\u308b\u3068\u624b\u9593\u304c\u304b\u304b\u308b\u30e2\u30c3\u30af\u5468\u308a\u3082\u3001\u307b\u307c\u554f\u984c\u306a\u304f\u4f5c\u6210\u3055\u308c\u305f\u3002\n<ul class=\"wp-block-list\">\n<li>\u95a2\u6570\u3092\u8fd4\u3059\u95a2\u6570\u306e\u30e2\u30c3\u30af\u306a\u3069\u3001\u8907\u96d1\u306a\u3082\u306e\u306f\u4e0d\u6b63\u306a\u7d50\u679c\u306b\u306a\u3063\u305f\u3002<\/li>\n\n\n\n<li>\u30e2\u30c3\u30af\u5316\u3059\u308b\u5fc5\u8981\u306e\u306a\u3044\u753b\u50cf\u304c\u30e2\u30c3\u30af\u5316\u3055\u308c\u305f\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306f\u3001\u82e5\u5e72\u30cf\u30eb\u30b7\u30cd\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3082\u306e\u306e\u3001\u4e0d\u8db3\u306a\u304f\u4f5c\u6210\u3055\u308c\u305f\u3002\n<ul class=\"wp-block-list\">\n<li>\u30a8\u30e9\u30fc\u51e6\u7406\u3084\u30c7\u30fc\u30bf\u304c0\u4ef6\u306e\u5834\u5408\u306e\u30a8\u30c3\u30b8\u30b1\u30fc\u30b9\u306a\u3069\u3082\u4f5c\u6210\u3055\u308c\u305f\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u975e\u540c\u671f\u51e6\u7406\u306b\u95a2\u3059\u308b\u8003\u616e\u304c\u3057\u304d\u308c\u3066\u304a\u3089\u305a\u3001\u5931\u6557\u3059\u308b\u30c6\u30b9\u30c8\u304c\u8907\u6570\u3042\u3063\u305f\u3002<\/li>\n\n\n\n<li>\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u306f\u307b\u307c\u554f\u984c\u306a\u3044\u304c\u3001\u5f37\u5316\u306e\u4f59\u5730\u304c\u82e5\u5e72\u3042\u3063\u305f\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u65e2\u5b58\u30b3\u30fc\u30c9\u306b\u5bfe\u3059\u308b\u30c6\u30b9\u30c8\u306e\u4f5c\u6210\u6642\u306b\u6d3b\u7528\u3059\u308b\u3068\u3001\u691c\u8a0e\u30fb\u5b9f\u88c5\u306e\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3067\u304d\u3001\u30a8\u30c3\u30b8\u30b1\u30fc\u30b9\u306a\u3069\u3082\u898b\u9003\u3057\u306b\u304f\u304f\u306a\u308b\u305f\u3081\u3001\u975e\u5e38\u306b\u5f79\u7acb\u3064\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30f3\u30c1\u30d1\u30bf\u30fc\u30f3<\/h3>\n\n\n\n<p>GitLab Duo\u306e\u30c6\u30b9\u30c8\u81ea\u52d5\u4f5c\u6210\u6a5f\u80fd\u306f\u3001\u3046\u307e\u304f\u4f7f\u3048\u3070\u5f37\u3044\u5473\u65b9\u306b\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u306f\u907f\u3051\u305f\u65b9\u304c\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f5c\u6210\u3055\u308c\u305f\u30c6\u30b9\u30c8\u3092\u3001\u305d\u306e\u5185\u5bb9\u3092\u7cbe\u67fb\u305b\u305a\u306b\u3001(\u6210\u529f\u3057\u3066\u3044\u308b\u5206\u3060\u3051\u3067\u3082)\u305d\u306e\u307e\u307e\u63a1\u7528\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u30c6\u30b9\u30c8\u306f\u672c\u6765\u300c\u4f55\u304b\u3092\u78ba\u8a8d\u30fb\u62c5\u4fdd\u300d\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002\u4f55\u3092\u62c5\u4fdd\u3057\u3066\u3044\u308b(\u3067\u304d\u3066\u3044\u308b)\u304b\u304c\u5206\u304b\u3089\u306a\u3051\u308c\u3070\u3001\u62c5\u4fdd\u3057\u305f\u3044\u3082\u306e\u3092\u62c5\u4fdd\u3067\u304d\u3066\u3044\u308b\u304b\u3082\u5206\u304b\u3089\u305a\u3001\u30c6\u30b9\u30c8\u306e\u610f\u5473\u304c\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u30c6\u30b9\u30c8\u306f\u7121\u99c4\u3067\u3042\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u5185\u5bb9\u304c\u304a\u304b\u3057\u3044\u3068\u8aad\u3093\u3060\u4eba\u306b\u6df7\u4e71\u3092\u751f\u3058\u3055\u305b\u308b\u539f\u56e0\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u307e\u3051\uff1aGitHub Copilot\u3068\u306e\u6bd4\u8f03<\/h2>\n\n\n\n<p>GitHub Copilot\u306b\u3082GitLab Duo\u3068\u540c\u69d8\u306e\u300c<code>\/tests<\/code>\u300d\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u305f\u5f01\u5f53\u6ce8\u6587\u30a2\u30d7\u30ea\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5bfe\u3057\u3066GitHub Copilot\u3067\u3082\u81ea\u52d5\u30c6\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4f5c\u6210\u7d50\u679c\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306e\u8a18\u8f09\u306f\u7701\u7565\u3057\u307e\u3059\u304c\u3001\u6570\u56de\u5b9f\u884c\u3057\u3066\u307f\u305f\u3068\u3053\u308dGitLab Duo\u3068\u307b\u307c\u540c\u3058\u3088\u3046\u306a\u5185\u5bb9\u30fb\u7cbe\u5ea6\u3067\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002\u4eca\u306e\u3068\u3053\u308d\u3001\u3069\u3061\u3089\u304c\u512a\u308c\u3066\u3044\u308b\u3068\u304b\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u3069\u306e\u3088\u3046\u306b\u4f7f\u3044\u5206\u3051\u308b\u304b\u3068\u3044\u3046\u3053\u3068\u306f\u5224\u65ad\u304c\u96e3\u3057\u305d\u3046\u3067\u3059\u3002\u958b\u767a\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u74b0\u5883\u3084\u30ea\u30dd\u30b8\u30c8\u30ea\u306a\u3069\u3092\u8e0f\u307e\u3048\u3066\u7dcf\u5408\u7684\u306b\u5224\u65ad\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab Duo\u306b\u306f\u69d8\u3005\u306a\u6a5f\u80fd(\u4e00\u89a7)\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306fAI\u306b\u81ea\u52d5\u30c6\u30b9\u30c8(UT)\u3092\u4f5c\u6210\u3057\u3066\u3082\u3089\u3046\u6a5f\u80fd\u3092\u8a66\u3057\u3066\u307f\u307e\u3057 [&#8230;]<\/p>\n","protected":false},"author":108,"featured_media":76603,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,985,768],"tags":[126,100],"class_list":["post-76955","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-ai-driven-dev","category-k-kamimura","tag-ai","tag-gitlab"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-01T01:30:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1004\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4e0a\u6751\u56fd\u6176\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e0a\u6751\u56fd\u6176\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"10\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955\"},\"author\":{\"name\":\"\u4e0a\u6751\u56fd\u6176\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/d90a5c6b3baa409b6d0f1d721cca812e\"},\"headline\":\"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI\",\"datePublished\":\"2025-05-01T01:30:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955\"},\"wordCount\":148,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/gitlab_duo_sample01.png\",\"keywords\":[\"AI\",\"gitlab\"],\"articleSection\":[\"AI\",\"AI\u99c6\u52d5\u958b\u767a(AIDD)\",\"k-kamimura\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955\",\"name\":\"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/gitlab_duo_sample01.png\",\"datePublished\":\"2025-05-01T01:30:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/d90a5c6b3baa409b6d0f1d721cca812e\"},\"description\":\"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/gitlab_duo_sample01.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/12\\\/gitlab_duo_sample01.png\",\"width\":1004,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\\\/76955#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatGPT\uff06AI\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AI\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/chatgpt-ai\\\/ai\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/d90a5c6b3baa409b6d0f1d721cca812e\",\"name\":\"\u4e0a\u6751\u56fd\u6176\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/unnamed-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/unnamed-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/unnamed-230x230.png\",\"caption\":\"\u4e0a\u6751\u56fd\u6176\"},\"description\":\"\u6559\u80b2\u7cfb\u30a8\u30f3\u30b8\u30cb\u30a2\u3002\u958b\u767a\u3084R&amp;D\u3067\u6700\u524d\u7dda\u306e\u6280\u8853\u3092\u5b9f\u8df5\u3057\u3064\u3064\u3001\u5f8c\u9032\u306e\u80b2\u6210\u306b\u3082\u9b42\u3092\u71c3\u3084\u3059\u3002\u6392\u51fa\u8005\u306f\u6570\u5343\u540d\u3002\u7121\u985e\u306e\u5b50\u3069\u3082\u597d\u304d\u3067\u3001\u5e73\u65e5\u5915\u65b9\u306f\u4ed5\u4e8b\u3092\u4e2d\u629c\u3051\u3057\u3066\u8fd1\u6240\u306e\u5b50\u3069\u3082\u3068\u904a\u3076\u6bce\u65e5\u3002\u5c0f\u5b66\u6821\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6388\u696d\u306a\u3069\u3082\u7d4c\u9a13\u3042\u308a\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/k-kamimura\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955","og_locale":"ja_JP","og_type":"article","og_title":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab","og_url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2025-05-01T01:30:35+00:00","og_image":[{"width":1004,"height":668,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png","type":"image\/png"}],"author":"\u4e0a\u6751\u56fd\u6176","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"\u4e0a\u6751\u56fd\u6176","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"10\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955"},"author":{"name":"\u4e0a\u6751\u56fd\u6176","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/d90a5c6b3baa409b6d0f1d721cca812e"},"headline":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI","datePublished":"2025-05-01T01:30:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955"},"wordCount":148,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png","keywords":["AI","gitlab"],"articleSection":["AI","AI\u99c6\u52d5\u958b\u767a(AIDD)","k-kamimura"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955","url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955","name":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png","datePublished":"2025-05-01T01:30:35+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/d90a5c6b3baa409b6d0f1d721cca812e"},"description":"AI, AI\u99c6\u52d5\u958b\u767a(AIDD), k-kamimura |\u306f\u3058\u3081\u306b GitLab Duo\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u5168\u4f53\u3067AI\u3092\u6d3b\u7528\u3067\u304d\u308b\u67a0\u7d44\u307f\u3067\u3059\u3002GitLab","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/12\/gitlab_duo_sample01.png","width":1004,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai\/76955#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"ChatGPT\uff06AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai"},{"@type":"ListItem","position":3,"name":"AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/ai"},{"@type":"ListItem","position":4,"name":"GitLab Duo\u3067UT\u3092\u81ea\u52d5\u4f5c\u6210 #GitLab #GitLabDuo #AI"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/d90a5c6b3baa409b6d0f1d721cca812e","name":"\u4e0a\u6751\u56fd\u6176","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/12\/unnamed-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/12\/unnamed-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/12\/unnamed-230x230.png","caption":"\u4e0a\u6751\u56fd\u6176"},"description":"\u6559\u80b2\u7cfb\u30a8\u30f3\u30b8\u30cb\u30a2\u3002\u958b\u767a\u3084R&amp;D\u3067\u6700\u524d\u7dda\u306e\u6280\u8853\u3092\u5b9f\u8df5\u3057\u3064\u3064\u3001\u5f8c\u9032\u306e\u80b2\u6210\u306b\u3082\u9b42\u3092\u71c3\u3084\u3059\u3002\u6392\u51fa\u8005\u306f\u6570\u5343\u540d\u3002\u7121\u985e\u306e\u5b50\u3069\u3082\u597d\u304d\u3067\u3001\u5e73\u65e5\u5915\u65b9\u306f\u4ed5\u4e8b\u3092\u4e2d\u629c\u3051\u3057\u3066\u8fd1\u6240\u306e\u5b50\u3069\u3082\u3068\u904a\u3076\u6bce\u65e5\u3002\u5c0f\u5b66\u6821\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u6388\u696d\u306a\u3069\u3082\u7d4c\u9a13\u3042\u308a\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-kamimura"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=76955"}],"version-history":[{"count":16,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76955\/revisions"}],"predecessor-version":[{"id":77277,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76955\/revisions\/77277"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/76603"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=76955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=76955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=76955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}