-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
45 lines (45 loc) · 933 Bytes
/
jest.config.js
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
module.exports = {
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.(js|ts|tsx)$": "ts-jest"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testMatch": [
"**/src/**/*.test.+(ts|js)?(x)"
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"collectCoverage": true,
"coverageReporters": [
"cobertura",
"html"
],
"reporters": [
"default",
[ "jest-junit",
{
"suiteName": "jest tests",
"outputDirectory": "./__tests__",
"outputName": "summary-jest-junit.xml"
}
]
],
"coverageDirectory": "<rootDir>/__tests__",
"coverageThreshold": {
"global": {
"branches": 40,
"functions": 30,
"lines": 40,
"statements": 40
}
}
}