diff --git a/app/jest.config.js b/app/jest.config.js index 501b6ddf..79bbe6e3 100644 --- a/app/jest.config.js +++ b/app/jest.config.js @@ -10,7 +10,7 @@ const createJestConfig = nextJest({ /** @type {import('jest').Config} */ const customJestConfig = { setupFilesAfterEnv: [ - "/tests/jest.setup.js", + "/tests/jest.setup.ts", "/tests/jest-i18n.ts", ], testEnvironment: "jsdom", diff --git a/app/tests/jest.setup.js b/app/tests/jest.setup.js deleted file mode 100644 index 4b8d9e26..00000000 --- a/app/tests/jest.setup.js +++ /dev/null @@ -1,4 +0,0 @@ -require("@testing-library/jest-dom"); -const { toHaveNoViolations } = require("jest-axe"); - -expect.extend(toHaveNoViolations); diff --git a/app/tests/jest.setup.ts b/app/tests/jest.setup.ts new file mode 100644 index 00000000..ce69f56e --- /dev/null +++ b/app/tests/jest.setup.ts @@ -0,0 +1,5 @@ +import "@testing-library/jest-dom"; + +import { toHaveNoViolations } from "jest-axe"; + +expect.extend(toHaveNoViolations);