There was an error while loading. Please reload this page.
2 parents 850a5d2 + 1e3e8fd commit ea97c34Copy full SHA for ea97c34
1 file changed
jest.config.js
@@ -1,17 +1,17 @@
1
-const nextJest = require('next/jest');
+const nextJest = require("next/jest");
2
3
const createJestConfig = nextJest({
4
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
5
- dir: './',
+ dir: "./",
6
});
7
8
// Add any custom config to be passed to Jest
9
const customJestConfig = {
10
- setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
11
- testEnvironment: 'jest-environment-jsdom',
+ setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
+ testEnvironment: "jest-environment-jsdom",
12
moduleNameMapper: {
13
// Handle module aliases
14
- '^@/(.*)$': '<rootDir>/$1',
+ "^@/(.*)$": "<rootDir>/$1",
15
},
16
};
17
0 commit comments