generated from wednesday-solutions/nodejs-hapi-template
-
Notifications
You must be signed in to change notification settings - Fork 29
/
jest.config.json
41 lines (41 loc) · 1.06 KB
/
jest.config.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
{
"testEnvironment": "node",
"setupFilesAfterEnv": ["./jest.setup.js"],
"reporters": [
"default",
[
"jest-sonar",
{
"outputDirectory": "reports",
"outputName": "test-report.xml",
"relativeRootDir": "./",
"reportedFilePath": "relative"
}
]
],
"collectCoverageFrom": [
"**/server/**",
"!**/node_modules/**",
"!**/dist/**",
"!**/server/database/models/**",
"!**/server/utils/testUtils/**",
"!**/server/utils/configureEnv.js",
"!**server/middleware/logger/index.js"
],
"coverageReporters": ["json-summary", "text", "lcov"],
"testPathIgnorePatterns": ["<rootDir>/dist/"],
"moduleNameMapper": {
"@server(.*)$": "<rootDir>/server/$1",
"@(database|services|gql|middleware|daos|utils)(.*)$": "<rootDir>/server/$1/$2",
"@config(.*)$": "<rootDir>/config/$1",
"slack-notify": "<rootDir>/node_modules/slack-notify/src/cjs/index.js"
},
"coverageThreshold": {
"global": {
"statements": 82,
"branches": 82,
"functions": 82,
"lines": 82
}
}
}