-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (30 loc) · 793 Bytes
/
Copy pathjest.config.js
File metadata and controls
31 lines (30 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @type {import('jest').Config} */
const config = {
reporters: ["./jest.reporter.js"],
roots: ["<rootDir>/tests"],
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
testEnvironment: "jest-environment-jsdom",
moduleNameMapper: {
"^@/app/(.*)$": "<rootDir>/app/$1",
"^@/components/(.*)$": "<rootDir>/app/components/$1",
"^@/lib/(.*)$": "<rootDir>/lib/$1",
"^@/scripts/(.*)$": "<rootDir>/scripts/$1",
"^@/tests/(.*)$": "<rootDir>/tests/$1",
},
transform: {
"^.+\\.(t|j)sx?$": [
"@swc/jest",
{
jsc: {
transform: {
react: {
runtime: "automatic",
},
},
},
},
],
},
transformIgnorePatterns: ["/node_modules/(?!nanoid/.*|uuid/.*)"],
};
module.exports = config;