-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
38 lines (38 loc) · 951 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
29
30
31
32
33
34
35
36
37
38
module.exports = {
collectCoverageFrom: [
'./src/**/*.ts',
'!./src/polyfills.ts',
'!./src/**/*.animation.ts',
'!./src/**/*.config.ts',
'!./src/**/*.constants.ts',
'!./src/**/public_api.ts',
'!./src/**/*.enum.ts',
'!./src/**/*.map.ts',
'!./src/**/*.mock.ts',
'!./src/**/*.model.ts',
'!./src/**/*.module.ts',
'!./src/**/*.routes.ts',
'!./src/**/*.actions.ts',
'!./src/**/*.selectors.ts',
'!./src/**/*.state.ts',
'!./src/**/*.store.ts',
'!./src/**/index.ts',
'!./src/**/main.ts',
'!./src/environments/**'
],
coverageThreshold: {
global: {
branches: 75,
functions: 90,
lines: 90,
statements: 90
}
},
coverageReporters: ['text', 'html'],
moduleFileExtensions: ['ts', 'js', 'html'],
resolver: '@nrwl/jest/plugins/resolver',
testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest'
}
};