-
Notifications
You must be signed in to change notification settings - Fork 242
/
jest.library.config.json
39 lines (39 loc) · 1.4 KB
/
jest.library.config.json
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
{
"setupTestFrameworkScriptFile": "<rootDir>/config/setup-jest.ts",
"globals": {
"__TS_CONFIG__": "tsconfig.spec.json",
"__TRANSFORM_HTML__": true
},
"transform": {
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
},
"testRegex": "src\\/(?!demo).+\\/.+\\.spec\\.ts$",
"moduleFileExtensions": [
"ts",
"js",
"html",
"json"
],
"mapCoverage": true,
"moduleDirectories": [
"node_modules",
"src"
],
"testPathIgnorePatterns": [
"/node_modules/"
],
"transformIgnorePatterns": [
"node_modules/(?!@ngrx)"
],
"moduleNameMapper": {
"^angular2-modal$": "<rootDir>/src/angular2-modal/src/angular2-modal.ts",
"^angular2-modal/src/(.*)": "<rootDir>/src/angular2-modal/src/$1",
"^angular2-modal/plugins/bootstrap$": "<rootDir>/src/angular2-modal/plugins/bootstrap/src/bootstrap.ts",
"^angular2-modal/plugins/bootstrap/src/(.*)": "<rootDir>/src/angular2-modal/plugins/bootstrap/src/$1",
"^angular2-modal/plugins/vex$": "<rootDir>/src/angular2-modal/plugins/vex/src/vex.ts",
"^angular2-modal/plugins/vex/src/(.*)": "<rootDir>/src/angular2-modal/plugins/vex/src/$1",
"^angular2-modal/plugins/js-native$": "<rootDir>/src/angular2-modal/plugins/js-native/src/js-native.ts",
"^angular2-modal/plugins/js-native/src/(.*)": "<rootDir>/src/angular2-modal/plugins/js-native/src/$1",
"(.*)": "<rootDir>/src/$1"
}
}