-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
40 lines (36 loc) · 1.19 KB
/
jest.config.ts
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
// // TODO: Improve coverage to 90%
// const coverageToNumber = 20; // [0..100]
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
testTimeout: 40000,
verbose: true,
rootDir: "./",
transform: {
"^.+\\.ts?$": "ts-jest",
},
moduleFileExtensions: ["ts", "js", "json", "node"],
clearMocks: true, // clear mocks before every test
resetMocks: false, // reset mock state before every test
testMatch: [
"<rootDir>/**/*.spec.ts", // Commenting cache test for github actions
"<rootDir>/**/*.test.ts",
"<rootDir>/**/*.test.js",
], // match only tests inside /tests folder
testPathIgnorePatterns: ["<rootDir>/node_modules/"], // exclude unnecessary folders
// following lines are about coverage
collectCoverage: true,
collectCoverageFrom: ["<rootDir>/orchestrator/src/**/*.ts"],
coverageDirectory: "<rootDir>/coverage",
coverageReporters: ["lcov"],
// coverageThreshold: {
// global: {
// // branches: coverageToNumber,
// // functions: coverageToNumber,
// lines: coverageToNumber,
// statements: coverageToNumber,
// },
// },
};