forked from briebug/ngrx-auto-entity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (35 loc) · 1.02 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
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/src/tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: [
require.resolve('jest-preset-angular/InlineHtmlStripStylesTransformer')
],
diagnostics: false
}
},
testMatch: ['**/+(*.)+(spec|test).+(ts)?(x)'],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/dist/',
'<rootDir>/src/'
],
coverageReporters: ['html', 'text'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.module.ts',
'!src/main.ts',
'!src/polyfills.ts',
'!src/environments/*.ts',
'projects/ngrx-auto-entity/src/lib/**/*.ts',
'!projects/ngrx-auto-entity/src/lib/**/*.module.ts',
'!projects/ngrx-auto-entity/src/lib/index.ts',
'!<rootDir>/setup-jest.ts',
'!<rootDir>/jestGlobalMocks.ts'
],
modulePathIgnorePatterns: ['<rootDir>/dist'],
transformIgnorePatterns: ['node_modules/(?!@ngrx)']
};