-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
42 lines (42 loc) · 876 Bytes
/
jest.config.json
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
32
33
34
35
36
37
38
39
40
41
42
{
"bail": true,
"collectCoverageFrom": [
"**/*.{ts,tsx}",
"!**/*.d.{ts,tsx}",
"!**/node_modules/**",
"!**/cjs/**",
"!**/esm/**"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"transform": {
"^.+.tsx?$": [
"ts-jest",
{
"tsconfig": {
"sourceMap": true
},
"useESM": true
}
]
},
"extensionsToTreatAsEsm": [".ts", ".tsx"],
"moduleDirectories": ["node_modules"],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"setupFilesAfterEnv": ["<rootDir>/jest.setup.ts"],
"testEnvironment": "jsdom",
"testMatch": ["**/*.test.{ts,tsx}"],
"testEnvironmentOptions": {
"url": "http://localhost"
},
"transformIgnorePatterns": ["/node_modules/.+\\.js$"],
"verbose": true
}