-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (21 loc) · 869 Bytes
/
jest.config.js
File metadata and controls
21 lines (21 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const nextJest = require("next/jest");
const createJestConfig = nextJest({
dir: "./",
});
const customJestConfig = {
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
moduleNameMapper: {
// Handle module aliases (this will be automatically configured for you soon)
"^@/components/(.*)$": "<rootDir>/components/$1",
"vfile/do-not-use-conditional-minpath":
"<rootDir>/node_modules/vfile/lib/minpath.browser.js",
"vfile/do-not-use-conditional-minproc":
"<rootDir>/node_modules/vfile/lib/minproc.browser.js",
"vfile/do-not-use-conditional-minurl":
"<rootDir>/node_modules/vfile/lib/minurl.browser.js",
"^@/pages/(.*)$": "<rootDir>/pages/$1",
},
testEnvironment: "jest-environment-jsdom",
transformIgnorePatterns: ["node_modules/(?!@ngrx|(?!deck.gl)|ng-dynamic)"],
};
module.exports = createJestConfig(customJestConfig);