generated from Finastra/angular-nestjs-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jest.config.js
43 lines (43 loc) · 1.39 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
36
37
38
39
40
41
42
43
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
diagnostics: true,
stringifyContentPathRegex: '\\.html$',
astTransformers: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
},
roots: ['<rootDir>/apps', '<rootDir>/libs'],
modulePaths: ['<rootDir>'],
moduleDirectories: ['node_modules', 'libs', '<rootDir>'],
testMatch: ['**/*.spec.ts'],
transform: {
'^.+\\.(ts|js|html)$': 'jest-preset-angular',
},
moduleNameMapper: {
'@finastra/features/home': '<rootDir>/libs/features/home/src/index.ts',
},
moduleFileExtensions: ['ts', 'html', 'js', 'json'],
collectCoverage: true,
coverageReporters: ['json', 'lcovonly', 'text', 'clover'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
projects: [
'<rootDir>/libs/cdk/bonds-table',
'<rootDir>/libs/cdk/global-search',
'<rootDir>/libs/shared',
'<rootDir>/libs/cdk/eth-address',
'<rootDir>/libs/cdk/loader',
'<rootDir>/libs/cdk/lei',
'<rootDir>/libs/cdk/copy-to-clipboard',
'<rootDir>/libs/cdk/instrument-currency',
],
};