-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jestrc.json
63 lines (63 loc) · 1.18 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
59
60
61
62
63
{
"globals": {
"ts-jest": {
"babelConfig": {
"presets": [
[
"env",
{
"targets": {
"node": "current"
},
"spec": true,
"modules": "commonjs",
"useBuiltIns": true
}
]
],
"plugins": [
"transform-function-bind",
[
"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/test/**/*.{ts|tsx}"
],
"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"
]
}