forked from alan-agius4/ng-mono-repo-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
executable file
·47 lines (47 loc) · 983 Bytes
/
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
module.exports = {
bail: true,
testURL: "http://localhost",
globals: {
"ts-jest": {
tsConfigFile: "./tsconfig.test.json",
useExperimentalLanguageServer: true
},
__TRANSFORM_HTML__: true
},
setupTestFrameworkScriptFile: "./test/test-setup.ts",
transform: {
"^.+\\.(ts|js|html)$": "<rootDir>/node_modules/jest-preset-angular/preprocessor.js"
},
moduleNameMapper: {
"@speedy/(.*)": "<rootDir>/packages/$1"
},
testRegex: ".*spec.ts$",
moduleFileExtensions: [
"ts",
"js",
"json"
],
transformIgnorePatterns: [
"/node_modules/",
"/dist/",
],
modulePathIgnorePatterns: [
"/dist/",
"/node_modules/"
],
projects: [
"<rootDir>",
"<rootDir>/packages/*"
],
collectCoverageFrom: [
"packages/*/*/src/**/*.ts",
"packages/*/src/**/*.ts"
],
coveragePathIgnorePatterns: [
".*(spec|const|config|mock|module|public-api|index|mock|model).ts"
],
coverageReporters: [
"lcovonly",
"html"
]
};