forked from UnravelTEC/ng-unrvl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (21 loc) · 870 Bytes
/
jest.config.js
File metadata and controls
22 lines (21 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const config = {
preset: 'jest-preset-angular',
setupTestFrameworkScriptFile: '<rootDir>/src/jest-setup.ts',
coverageDirectory: 'reports/coverage/jest',
testMatch: ['<rootDir>/src/app/**/*.spec.ts'],
coverageReporters: ['lcov', 'text-summary'],
collectCoverageFrom: ['src/app/**/*.ts', '!src/app/testing/**/*.ts', '!src/app/**/*.{module,routes}.ts', '!src/app/**/index.ts'],
transformIgnorePatterns: ['node_modules/(?!@ngrx|lodash-es)'],
transform: {
'^.+\\.(ts|html)$': '<rootDir>/node_modules/jest-preset-angular/preprocessor.js',
'^.+\\.js$': 'babel-jest',
},
moduleNameMapper: {
'^app/(.*)': '<rootDir>/src/app/$1',
},
snapshotSerializers: [
'<rootDir>/node_modules/jest-preset-angular/AngularSnapshotSerializer.js',
'<rootDir>/node_modules/jest-preset-angular/HTMLCommentSerializer.js',
],
};
module.exports = config;