-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.json
50 lines (50 loc) · 928 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
43
44
45
46
47
48
49
50
{
"rootDir": "./",
"globals": {
"__DEV__": true,
"__PROD__": false
},
"testEnvironment": "node",
"preset": "ts-jest",
"verbose": true,
"bail": false,
"detectOpenHandles": false,
"moduleDirectories": [
"node_modules",
"src",
"test"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"testMatch": [
"**/test/**/*.test.ts?(x)"
],
"testPathIgnorePatterns": [
"node_modules/",
"dist/",
".json"
],
"transform": {
"^.+\\.(t|j)s$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.test.json"
}
]
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 50,
"statements": -10
}
}
}