-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (29 loc) · 986 Bytes
/
jest.config.js
File metadata and controls
29 lines (29 loc) · 986 Bytes
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
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/projects/ps-helix/src/setup-jest.ts'],
testEnvironment: 'jsdom',
roots: ['<rootDir>/projects/ps-helix'],
testMatch: ['**/*.spec.ts'],
moduleNameMapper: {
'^ps-helix$': '<rootDir>/projects/ps-helix/src/public-api.ts',
'^ps-helix/(.*)$': '<rootDir>/projects/ps-helix/src/$1',
'^@angular/forms/signals$': '<rootDir>/node_modules/@angular/forms/fesm2022/signals.mjs'
},
collectCoverageFrom: [
'projects/ps-helix/src/**/*.ts',
'!projects/ps-helix/src/**/*.spec.ts',
'!projects/ps-helix/src/public-api.ts'
],
coverageDirectory: 'coverage/ps-helix',
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
transform: {
'^.+\\.(ts|js|mjs|html|svg)$': [
'jest-preset-angular',
{
tsconfig: '<rootDir>/projects/ps-helix/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
diagnostics: false
}
]
}
};