From 9dfc82c1064fdbedc6ca152a64fd991c947411df Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 4 Aug 2025 14:43:23 +0200 Subject: [PATCH] Clean --- .github/workflows/ci.yml | 2 +- jest.config.js | 1 + jest.setup.d.ts | 14 -------------- 3 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 jest.setup.d.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0d79661..694b74f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: run: npm run lint - name: Run Jest tests - run: npm run test tests/jest + run: npm run test - name: Build app env: diff --git a/jest.config.js b/jest.config.js index 68d09256..5d2633f1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -7,6 +7,7 @@ const createJestConfig = nextJest({ // Add any custom config to be passed to Jest const customJestConfig = { + roots: ['/tests/jest'], // Add more setup options before each test is run setupFilesAfterEnv: ['/jest.setup.js'], // if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work diff --git a/jest.setup.d.ts b/jest.setup.d.ts deleted file mode 100644 index fcffd96d..00000000 --- a/jest.setup.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// // This file extends the global Jest namespace with custom matchers from @testing-library/jest-dom -// import '@testing-library/jest-dom'; -// -// declare global { -// namespace jest { -// interface Matchers { -// toBeInTheDocument(): R; -// toHaveClass(...classes: string[]): R; -// // Add other custom matchers you use from @testing-library/jest-dom -// } -// } -// } -// -// export {};