-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jestrc.json
58 lines (58 loc) · 1.27 KB
/
.jestrc.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
51
52
53
54
55
56
57
58
{
"globals": {
"ts-jest": {
"useBabelrc": "false",
"babelConfig": {
"presets": [
["env", {
"targets": {
"node": "current"
},
"spec": true,
"modules": false,
"useBuiltIns": "usage",
"shippedProposals": true
}]
],
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true }]
]
}
}
},
"testEnvironment": "node",
"collectCoverage": true,
"coverageDirectory": "./coverage",
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
},
"collectCoverageFrom": [
"**/src/**/*.{ts|tsx}",
"!**/node_modules/**",
"!**/src/demo/**/*.{ts|tsx}",
"!**/src/test*/**/*.{ts|tsx}",
"!**/src/**/*.d.ts"
],
"verbose": true,
"bail": true,
"roots": [
"<rootDir>/src/"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testMatch": [
"**/src/test*/**/*.spec.(ts|tsx)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
}