-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (21 loc) · 792 Bytes
/
jest.config.js
File metadata and controls
27 lines (21 loc) · 792 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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// Automatically clear mock calls, instances, contexts and results before every test
clearMocks: true,
// An array of directory names to be searched recursively up from the requiring module's location
moduleDirectories: ["app/", "node_modules/"],
moduleNameMapper: {
"\\.svg$": "<rootDir>/app/ts/test/__mocks__/svg.js",
},
modulePathIgnorePatterns: ["dist/", "env/", "node_modules/"],
testEnvironment: "jsdom",
// A map from regular expressions to paths to transformers
// transform: undefined,
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
},
verbose: true,
};