forked from ng-state/store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (27 loc) · 842 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
module.exports = {
globals: {
"ts-jest": {
tsconfig: "tsconfig.spec.json",
},
},
transform: {
"^.+\\.ts?$": "ts-jest",
},
testRegex: "(spec/__tests__/.*|(\\.|/)(test|spec))\\.(ts?)$",
testPathIgnorePatterns: ["/node_modules/"],
collectCoverage: false,
coverageReporters: ["lcov", "text"],
coverageDirectory: "tests-coverage",
collectCoverageFrom: ["src/**/*.ts"],
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
modulePathIgnorePatterns: ["<rootDir>/release/"],
moduleNameMapper: {
"^@ng-state/store$": "<rootDir>/release/ng-state",
"^@ng-state/(.*)$": "<rootDir>/release/$1",
},
snapshotSerializers: [
"<rootDir>/node_modules/pretty-format/build/plugins/ConvertAnsi.js",
],
preset: "jest-preset-angular",
setupFilesAfterEnv: ["<rootDir>/setup-jest.ts"],
};