From 0121b1bb3d56fe4c35a6bc5e69611a9991552a93 Mon Sep 17 00:00:00 2001 From: arrow2nd <44780846+arrow2nd@users.noreply.github.com> Date: Sun, 14 Jan 2024 14:01:43 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__snapshots__/index.test.tsx.snap | 92 +++++++++++-------- .../organisms/color-cards/index.test.tsx | 2 +- components/organisms/ui/index.test.tsx | 2 +- package.json | 1 + pnpm-lock.yaml | 15 ++- 5 files changed, 71 insertions(+), 41 deletions(-) diff --git a/components/molecules/not-found-card/__snapshots__/index.test.tsx.snap b/components/molecules/not-found-card/__snapshots__/index.test.tsx.snap index 22e9928..38c55b8 100644 --- a/components/molecules/not-found-card/__snapshots__/index.test.tsx.snap +++ b/components/molecules/not-found-card/__snapshots__/index.test.tsx.snap @@ -3,47 +3,65 @@ exports[`NotFoundCard 見た目が変化していないか 1`] = `
- - - - - - - - - - + + + + + + + + + + +

+ 見つかりませんでした… +

+

- みつかりませんでした... + アイドル・ユニット名が間違っているか、 + + im@sparql + + にイメージカラーの情報が登録されていないようです。

diff --git a/components/organisms/color-cards/index.test.tsx b/components/organisms/color-cards/index.test.tsx index ef658d4..7d66cf1 100644 --- a/components/organisms/color-cards/index.test.tsx +++ b/components/organisms/color-cards/index.test.tsx @@ -14,7 +14,7 @@ describe('ColorCards', () => { test('カードが無いときの表示が正しいか', () => { const { getByText } = render() - expect(getByText('みつかりませんでした...')).toBeTruthy() + expect(getByText('見つかりませんでした…')).toBeTruthy() }) test('見た目が変化していないか', () => { diff --git a/components/organisms/ui/index.test.tsx b/components/organisms/ui/index.test.tsx index 6a8808c..83c138e 100644 --- a/components/organisms/ui/index.test.tsx +++ b/components/organisms/ui/index.test.tsx @@ -19,7 +19,7 @@ describe('UI', () => { fireEvent.click(getByTestId('search-button')) }) - expect(getByText('みつかりませんでした...')).toBeTruthy() + expect(getByText('見つかりませんでした…')).toBeTruthy() }) test('ブランドから検索ができるか', () => { diff --git a/package.json b/package.json index 2587660..c1ca7c9 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@testing-library/react": "^14.1.2", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/color-convert": "^2.0.3", + "@types/jest": "^29.5.11", "@types/node": "^20.11.0", "@types/react": "18.2.47", "@types/react-scroll": "^1.8.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ced11a8..4544c10 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,7 +42,7 @@ devDependencies: version: 0.5.7(tailwindcss@3.4.1) '@testing-library/jest-dom': specifier: ^6.2.0 - version: 6.2.0(jest@29.7.0) + version: 6.2.0(@types/jest@29.5.11)(jest@29.7.0) '@testing-library/react': specifier: ^14.1.2 version: 14.1.2(react-dom@18.2.0)(react@18.2.0) @@ -52,6 +52,9 @@ devDependencies: '@types/color-convert': specifier: ^2.0.3 version: 2.0.3 + '@types/jest': + specifier: ^29.5.11 + version: 29.5.11 '@types/node': specifier: ^20.11.0 version: 20.11.0 @@ -1041,7 +1044,7 @@ packages: pretty-format: 27.5.1 dev: true - /@testing-library/jest-dom@6.2.0(jest@29.7.0): + /@testing-library/jest-dom@6.2.0(@types/jest@29.5.11)(jest@29.7.0): resolution: {integrity: sha512-+BVQlJ9cmEn5RDMUS8c2+TU6giLvzaHZ8sU/x0Jj7fk+6/46wPdwlgOPcpxS17CjcanBi/3VmGMqVr2rmbUmNw==} engines: {node: '>=14', npm: '>=6', yarn: '>=1'} peerDependencies: @@ -1061,6 +1064,7 @@ packages: dependencies: '@adobe/css-tools': 4.3.2 '@babel/runtime': 7.21.0 + '@types/jest': 29.5.11 aria-query: 5.1.3 chalk: 3.0.0 css.escape: 1.5.1 @@ -1190,6 +1194,13 @@ packages: '@types/istanbul-lib-report': 3.0.3 dev: true + /@types/jest@29.5.11: + resolution: {integrity: sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==} + dependencies: + expect: 29.7.0 + pretty-format: 29.7.0 + dev: true + /@types/jsdom@20.0.1: resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} dependencies: