-
Notifications
You must be signed in to change notification settings - Fork 473
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (28 loc) · 891 Bytes
/
jest.config.js
File metadata and controls
28 lines (28 loc) · 891 Bytes
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
module.exports = {
rootDir: '../',
globals: {
'ts-jest': {
stringifyContentPathRegex: '\\.html?$',
tsConfig: '<rootDir>/.debug/tsconfig.spec.json',
astTransformers: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer'
]
}
},
testEnvironment: 'jest-environment-jsdom-sixteen',
preset: 'jest-preset-angular',
testURL: 'http://localhost/',
transform: {
'^.+\\.(ts|html)$': 'ts-jest'
},
setupFilesAfterEnv: ['<rootDir>/.debug/test-setup.ts'],
silent: false,
transformIgnorePatterns: ['node_modules/(?!@ngrx)', '<rootDir>/dist/'],
moduleNameMapper: {
'^@ccxp-client/(.*)$': '<rootDir>/libs/$1/src/index.ts',
'^@ccxp-client-testing/(.*)$': '<rootDir>/libs/$1/src/testing.ts',
'^tools/(.*)$': '<rootDir>/tools/$1',
'\\.svg$': 'identity-obj-proxy'
}
};