forked from cormacrelf/angular-skyhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
49 lines (49 loc) · 1.06 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
44
45
46
47
48
49
module.exports = {
bail: true,
globals: {
"ts-jest": {
tsConfigFile: "./tsconfig.test.json",
useExperimentalLanguageServer: true
},
__TRANSFORM_HTML__: true
},
// https://github.com/facebook/jest/issues/6766
testURL: 'http://localhost',
setupTestFrameworkScriptFile: "./test/test-setup.ts",
transform: {
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
},
moduleNameMapper: {
"@angular-skyhook/(.*)": "<rootDir>/packages/$1"
},
testRegex: ".*spec.ts$",
moduleFileExtensions: [
"ts",
"js",
"json"
],
transformIgnorePatterns: [
"/node_modules/",
"/dist/"
],
modulePathIgnorePatterns: [
"/node_modules/",
"/dist/"
],
projects: [
"<rootDir>",
// "<rootDir>/packages/*"
],
collectCoverageFrom: [
"packages/core/*/src/**/*.ts",
"packages/multi-backend/*/src/**/*.ts",
"packages/sortable/*/src/**/*.ts",
],
coveragePathIgnorePatterns: [
".*(spec|const|config|mock|module|public-api|index|mock|model|d).ts"
],
coverageReporters: [
"lcovonly",
"html"
]
};