forked from INTO-CPS-Association/DTaaS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.json
54 lines (54 loc) · 1.1 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
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"preset": "ts-jest/presets/default-esm",
"testEnvironment": "node",
"transform": {
"(src|test)/^.+\\.(t|j)sx?$": [
"ts-jest",
{
"useESM": true
}
]
},
"collectCoverage": true,
"coverageReporters": ["text", "cobertura", "clover", "lcov", "json"],
"collectCoverageFrom": ["src/**/*.{ts,js}"],
"coveragePathIgnorePatterns": [
"node_modules",
"./dist",
"../src/app.module.ts",
"../src/main.ts"
],
"extensionsToTreatAsEsm": [".ts"],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"modulePathIgnorePatterns": [],
"coverageDirectory": "<rootDir>/coverage/",
"coverageThreshold": {
"global": {
"branches": 20,
"functions": 30,
"lines": 50,
"statements": 50
}
},
"verbose": true,
"testRegex": "./test/.*\\.spec.tsx?$",
"modulePaths": ["<rootDir>", "<rootDir>/src/", "<rootDir>/test/"],
"moduleDirectories": [
"node_modules",
"src",
"test"
],
"rootDir": "./",
"roots": [
"<rootDir>",
"src/",
"test/"
],
"moduleNameMapper": {
"^(\\.\\/.+)\\.js$": "$1"
}
}