generated from twig-it/typescript-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
34 lines (33 loc) · 953 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
process.env.TZ = "UTC"; // Tests should always run in UTC, no time zone dependencies
module.exports = {
rootDir: ".",
globals: {
"ts-jest": {
tsconfig: "<rootDir>/tsconfig.spec.json",
stringifyContentPathRegex: "\\.html$",
},
},
reporters: [
"default",
[
"jest-junit",
{
outputDirectory: "test-results/traceable-ui",
},
],
[
"jest-html-reporter",
{
outputPath: "test-results/traceable-ui/test-report.html",
},
],
],
watchPathIgnorePatterns: ["test-results"],
collectCoverageFrom: ["src/**/*.ts", "projects/*/src/**/*.ts", "!**/*.d.ts"],
coverageDirectory: "coverage/from-resize-demo-app",
modulePathIgnorePatterns: ["<rootDir>/dist/"], // Need to reset from app project, but empty is merged
testMatch: ["<rootDir>/(src|projects)/**/+(*.)+(spec|test).ts"],
moduleNameMapper: {
"@org/from-resize": "<rootDir>/dist/from-resize",
},
};