-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
18 lines (18 loc) · 764 Bytes
/
jest.config.js
File metadata and controls
18 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
preset: "jest-preset-angular",
setupFilesAfterEnv: ["<rootDir>/setup.jest.ts"],
testEnvironment: "jsdom",
testMatch: ["**/+(*.)+(spec).+(ts)"],
transform: {"^.+.(ts|mjs|js|html)$": ["jest-preset-angular",{tsconfig: "<rootDir>/tsconfig.spec.json",stringifyContentPathRegex:
"\\.(html|svg)$",},],},
transformIgnorePatterns: ["node_modules/(?!(.*\\.mjs$|d3-.*))"],
snapshotSerializers: [
"jest-preset-angular/build/serializers/no-ng-attributes",
"jest-preset-angular/build/serializers/ng-snapshot",
"jest-preset-angular/build/serializers/html-comment",
],
moduleFileExtensions: ["ts", "html", "js", "json"],
collectCoverage: true,
coverageReporters: ["html"],
coverageDirectory: "coverage/jest-demo",
};