forked from intershop/intershop-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
33 lines (32 loc) · 1023 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
const esModules = [
'jest-test',
'@ngrx',
'ngx-bootstrap',
'@angular/common/locales',
'lodash-es/.*',
'ngx-utils-cookies-port',
];
module.exports = {
globals: {
'ts-jest': {
isolatedModules: true,
},
},
preset: 'jest-preset-angular',
testRunner: 'jest-jasmine2',
maxWorkers: '75%', // keep some cpu for moving the mouse
roots: ['src', 'projects'],
setupFilesAfterEnv: ['<rootDir>/src/setupJest.ts'],
transformIgnorePatterns: [`node_modules/(?!${esModules.join('|')})`],
moduleNameMapper: {
'^ish-(.*)$': '<rootDir>/src/app/$1',
'^organization-management$': '<rootDir>/projects/organization-management/src/app/exports',
'^requisition-management$': '<rootDir>/projects/requisition-management/src/app/exports',
},
snapshotSerializers: [
'./src/jest-serializer/AngularHTMLSerializer.js',
'./src/jest-serializer/CategoryTreeSerializer.js',
'./src/jest-serializer/NgrxActionSerializer.js',
'./src/jest-serializer/NgrxActionArraySerializer.js',
],
};