-
Notifications
You must be signed in to change notification settings - Fork 11
/
jest.config.js
37 lines (37 loc) · 1.21 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
module.exports = {
preset: 'jest-preset-angular',
roots: ['<rootDir>/src/'],
testMatch: ['**/+(*.)+(spec).+(ts)'],
collectCoverage: true,
coverageReporters: ['html'],
coverageDirectory: 'coverage/',
setupFilesAfterEnv: ["<rootDir>/setup-jest.ts"],
moduleNameMapper: {
"@env/(.*)$": "<rootDir>/src/environments/$1",
"@app/(.*)$": "<rootDir>/src/app/$1",
"@store/(.*)$": "<rootDir>/src/app/store/$1",
"@core/(.*)$": "<rootDir>/src/app/core/$1",
"@shared/(.*)$": "<rootDir>/src/app/shared/$1",
"@layout/(.*)$": "<rootDir>/src/app/layout/$1",
"@models/(.*)$": "<rootDir>/src/app/core/models/$1",
"@pages/(.*)$": "<rootDir>/src/app/pages/$1",
"@auth/(.*)$": "<rootDir>/src/app/pages/auth/$1",
"@members/(.*)$": "<rootDir>/src/app/pages/members/$1",
"@settings/(.*)$": "<rootDir>/src/app/pages/settings/$"
},
testPathIgnorePatterns: [
"<rootDir>/node_modules/",
"<rootDir>/dist/",
"<rootDir>/node_modules/(?!@ngrx)",
],
globals: {
'ts-jest': {
tsconfig: "<rootDir>/tsconfig.spec.json",
stringifyContentPathRegex: "\\.html$"
}
},
// testEnvironment: 'jsdom',
// transform: {
// '^.+\\.(ts|js|html)$': 'jest-preset-angular',
// }
};