forked from scullyio/scully
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.preset.js
More file actions
23 lines (23 loc) · 781 Bytes
/
jest.preset.js
File metadata and controls
23 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = {
roots: ['tests/jest/src'],
transform: {
'^.+\\.(ts|js|html)$': 'ts-jest',
},
setupFilesAfterEnv: ['./tests/jest/src/setup-jest.ts'],
moduleNameMapper: {
'@app/(.*)': '<rootDir>/apps/sample-blog/src/app/$1',
'@assets/(.*)': '<rootDir>/apps/sample-blog/src/assets/$1',
'@env': '<rootDir>/apps/sample-blog/src/environments/environment',
'@src/(.*)': '<rootDir>/apps/sample-blog/src/$1',
'@scullyio/ng-lib': '<rootDir>/dist/libs/ng-lib',
},
globals: {
'ts-jest': {
tsconfig: './tsconfig.spec.json',
stringifyContentPathRegex: '\\.html$',
astTransformers: {
// before: ['jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer'],
},
},
},
};