Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const createJestConfig = nextJest({
/** @type {import('jest').Config} */
const customJestConfig = {
setupFilesAfterEnv: [
"<rootDir>/tests/jest.setup.js",
"<rootDir>/tests/jest.setup.ts",
"<rootDir>/tests/jest-i18n.ts",
],
testEnvironment: "jsdom",
Expand Down
74 changes: 37 additions & 37 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@storybook/nextjs": "^7.6.0",
"@storybook/react": "^7.6.0",
"@testing-library/dom": "^9.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.5.5",
Expand All @@ -53,7 +53,7 @@
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-storybook": "^0.6.12",
"eslint-plugin-testing-library": "^5.11.0",
"eslint-plugin-testing-library": "^6.0.0",
"i18next-browser-languagedetector": "^7.0.2",
"i18next-http-backend": "^2.2.1",
"i18next-resources-for-ts": "^1.3.0",
Expand Down
4 changes: 0 additions & 4 deletions app/tests/jest.setup.js

This file was deleted.

5 changes: 5 additions & 0 deletions app/tests/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import "@testing-library/jest-dom";

import { toHaveNoViolations } from "jest-axe";

expect.extend(toHaveNoViolations);
2 changes: 1 addition & 1 deletion app/tests/types/i18next.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ expect.extend({ toHaveI18nNamespaces });

describe("types/generated-i18n-bundle.ts", () => {
it("includes all English namespaces", () => {
// Not adding a type declaration for this matcher since it is only used in this test
// @ts-expect-error - Not adding a type declaration for this matcher since it is only used in this test
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
expect(Object.keys(generatedEnglishResources)).toHaveI18nNamespaces(
i18nConfig.ns
Expand Down