-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
50 lines (48 loc) · 1.33 KB
/
jest.config.js
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
/** @type {import('jest').Config} */
var config = {
// verbose: true,
preset: "jest-preset-angular",
testEnvironment: "jsdom",
// testEnvironment: "@happy-dom/jest-environment",
setupFilesAfterEnv: ["<rootDir>/jest-setup.ts"],
roots: ["<rootDir>"],
modulePaths: ["<rootDir>"],
moduleDirectories: ["node_modules"],
moduleNameMapper: {
"maptalks.three": "<rootDir>/node_modules/maptalks.three/dist/index.js",
},
transformIgnorePatterns: [
"node_modules/(?!.*\\.mjs$|uuid|maptalks|three|css|scss|@firebase|@angular/fire|date-fns)",
],
globals: {
"ts-jest": {
isolatedModules: true,
},
},
collectCoverage: false,
collectCoverageFrom: ["./src/app/**"],
coveragePathIgnorePatterns: [
"(.stories.ts|.html|module.ts|.json|guards|mock|app.component|app.service|map-dashboard.component|pages/live|hik-video-2|service.ts|list-filter|notification-list|search|line-chart|proxy-image|image-canvas|shared/services)",
],
coverageThreshold: {
global: {
statements: 75,
branches: 75,
functions: 75,
lines: 75,
},
"./src/app/pages/**/*.ts": {
statements: 75,
branches: 75,
functions: 75,
lines: 75,
},
"./src/app/shared/**/*.ts": {
statements: 75,
branches: 75,
functions: 75,
lines: 75,
},
},
}
module.exports = config