-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
47 lines (46 loc) · 1.15 KB
/
jest.config.js
File metadata and controls
47 lines (46 loc) · 1.15 KB
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
module.exports = {
"testEnvironment": "shipchain",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "/jest.testOrder.ts$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"collectCoverage": true,
"collectCoverageFrom": [
"rpc/**/*.ts",
"src/**/*.ts",
"!<rootDir>/rpc/__tests__/*",
"!<rootDir>/rpc/__tests__/primitives/*",
"!<rootDir>/rpc/Load/1.0.2/*",
"!<rootDir>/src/__tests__/*",
"!<rootDir>/src/Logger.ts",
"!<rootDir>/src/entity/migration/*",
"!<rootDir>/src/shipchain/contracts/**/*",
"!<rootDir>/src/shipchain/__tests__/*"
],
"coverageReporters": [
"text",
"text-summary",
"html"
],
"coverageThreshold": {
"global": {
"branches": 60,
"functions": 75,
"lines": 75,
"statements": 75
}
},
"coverageDirectory": "<rootDir>/reports/coverage/",
"reporters": [
"default",
["jest-junit", {output: "<rootDir>/reports/junit/jest-junit.xml"}]
]
};