-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
39 lines (39 loc) · 1.01 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
module.exports = {
preset: 'jest-preset-angular',
globals: {
},
testMatch: [
"**/__tests__/**/*.+(ts|js)?(x)",
"**/+(*.)+(spec|test).+(ts|js)?(x)"
],
cacheDirectory: './.jest-cache',
roots: [/*'<rootDir>/apps/',*/ '<rootDir>/libs/'],
reporters: [
'default',
// ['jest-junit', {
// outputDirectory: 'dist/test/junit/jest',
// outputName: 'jest-junit.xml',
// }]
],
// transform: {
// '^.+\\.(ts|js|html)$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js'
// },
//transformIgnorePatterns: ['<rootDir>/node_modules/(?!lodash-es/.*)'],
//collectCoverage: true,
coverageProvider: 'v8',
coverageDirectory: 'dist/test/coverage/jest',
collectCoverageFrom: [
'**/*.ts',
'!**/node_modules/**',
'!**/environments/**',
'!**/test.ts',
'!**/karma-spec.ts',
'!**/index.ts',
'!**/public-api.ts',
'!**/polyfills.ts',
'!**/main.ts',
'!**/setup-jest.ts',
'!**/*.module.ts'
],
setupFilesAfterEnv: ['./test/setup-jest.ts']
};