-
Notifications
You must be signed in to change notification settings - Fork 11
/
jest.config.json
32 lines (32 loc) · 1014 Bytes
/
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
{
"testEnvironment": "node",
"setupFilesAfterEnv": ["./jest.setup.js"],
"collectCoverageFrom": [
"**/server/**",
"!**/node_modules/**",
"!**/dist/**",
"!**/models/**",
"!**/server/translations/**",
"!__tests__/__load__/libs/**/*.*"
],
"testRegex": "(/__tests__/.*\\.test)\\.js$",
"coverageReporters": ["json-summary", "text", "lcov"],
"testPathIgnorePatterns": ["<rootDir>/dist/"],
"moduleNameMapper": {
"@server(.*)$": "<rootDir>/server/$1",
"@(database|services|gql|middleware|daos|utils)(.*)$": "<rootDir>/server/$1/$2",
"slack-notify": "<rootDir>/node_modules/slack-notify/src/cjs/index.js"
},
"coverageThreshold": {
"global": {
"statements": 85,
"branches": 85,
"functions": 85,
"lines": 85
}
},
"coveragePathIgnorePatterns": [
"<rootDir>/server/utils/routeLister",
"<rootDir>/server/utils/random.js"
]
}