generated from pagopa/io-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
executable file
·39 lines (39 loc) · 1.08 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
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testPathIgnorePatterns: ["/dist","/node_modules"],
testMatch: [
"**/__tests__/*.ts"
],
setupFiles: ["<rootDir>/jest.setup.js"],
rootDir: ".",
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\/success/schema.js$':'<rootDir>/dist/src/generated/templates/success/schema.js',
'^[./a-zA-Z0-9$_-]+\\/ko/schema.js$':'<rootDir>/dist/src/generated/templates/ko/schema.js',
},
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.ts",
"!<rootDir>/src/index.ts",
"!<rootDir>/src/__tests__/**/*",
"!<rootDir>/src/__mocks__/**/*"
],
coveragePathIgnorePatterns: ["index.ts"],
testResultsProcessor: "jest-sonar-reporter",
coveragePathIgnorePatterns: [
"node_modules",
"test-config",
".module.ts",
"<rootDir>/src/generated/",
"<rootDir>/src/__mocks__/*.ts"
],
coverageDirectory: "<rootDir>/coverage/",
/*coverageThreshold: {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}*/
};