forked from wednesday-solutions/nodejs-hapi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.json
More file actions
29 lines (29 loc) · 799 Bytes
/
jest.config.json
File metadata and controls
29 lines (29 loc) · 799 Bytes
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
{
"setupFilesAfterEnv": ["./jest.setup.js"],
"clearMocks": true,
"restoreMocks": true,
"resetMocks": true,
"globals": {
"server": null
},
"moduleNameMapper": {
"@root(.*)$": "<rootDir>/$1",
"@(models|routes|daos|services)(.*)$": "<rootDir>/lib/$1/$2",
"@(utils|config|plugins)(.*)$": "<rootDir>/$1/$2"
},
"coverageReporters": ["json-summary", "text", "lcov"],
"coverageThreshold": {
"global": {
"statements": 85,
"branches": 85,
"functions": 85,
"lines": 85
}
},
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/utils/testUtils.js",
"<rootDir>/utils/mockData.js",
"<rootDir>/lib/testServer.js"
]
}