-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjest.config.js
28 lines (28 loc) · 897 Bytes
/
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
module.exports = {
preset: "jest-preset-angular",
roots: ["src"],
setupFilesAfterEnv: ["<rootDir>/src/setup-jest.ts"],
moduleNameMapper: {
"@app/(.*)": "<rootDir>/src/app/$1",
"@assets/(.*)": "<rootDir>/src/assets/$1",
"@core/(.*)": "<rootDir>/src/app/core/$1",
"@infraestructure/(.*)": "<rootDir>/src/app/infraestructure/$1",
"@env": "<rootDir>/src/environments/environment",
"@src/(.*)": "<rootDir>/src/src/$1",
"@services/(.*)": "<rootDir>/src/app/core/services/$1",
"@helpers/(.*)": "<rootDir>/src/app/helpers/$1",
"@shared/(.*)": "<rootDir>/src/app/shared/$1",
},
globals: {
"ts-jest": {
tsconfig: "<rootDir>/tsconfig.spec.json",
stringifyContentPathRegex: "\\.html$",
},
},
coverageDirectory: "./coverage",
collectCoverageFrom: [
"src/app/**/*.ts",
"!<rootDir>/node_modules/",
"!<rootDir>/test/",
],
};