-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (21 loc) · 848 Bytes
/
jest.config.js
File metadata and controls
22 lines (21 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/', '<rootDir>/projects/ngrx-devtool-demo/', '<rootDir>/docs/'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
moduleNameMapper: {
'^@app/(.*)$': '<rootDir>/projects/ngrx-devtool-ui/src/app/$1',
'^@components/(.*)$': '<rootDir>/projects/ngrx-devtool-ui/src/components/$1',
'^@services/(.*)$': '<rootDir>/projects/ngrx-devtool-ui/src/services/$1',
},
testMatch: ['**/+(*.)+(spec).+(ts)'],
collectCoverageFrom: [
'projects/ngrx-devtool-ui/src/**/*.ts',
'projects/ngrx-devtool/src/**/*.ts',
'!**/*.module.ts',
'!**/index.ts',
'!**/public-api.ts',
],
coverageDirectory: 'coverage',
coverageReporters: ['html', 'text-summary'],
};