This commit is contained in:
MartinBraquet
2025-08-04 14:43:23 +02:00
parent 087f10f7bb
commit 9dfc82c106
3 changed files with 2 additions and 15 deletions

View File

@@ -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:

View File

@@ -7,6 +7,7 @@ const createJestConfig = nextJest({
// Add any custom config to be passed to Jest
const customJestConfig = {
roots: ['<rootDir>/tests/jest'],
// Add more setup options before each test is run
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// if using TypeScript with a baseUrl set to the root directory then you need the below for alias' to work

14
jest.setup.d.ts vendored
View File

@@ -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<R> {
// toBeInTheDocument(): R;
// toHaveClass(...classes: string[]): R;
// // Add other custom matchers you use from @testing-library/jest-dom
// }
// }
// }
//
// export {};