-
Notifications
You must be signed in to change notification settings - Fork 8
/
jest.config.js
29 lines (28 loc) · 707 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
"use strict";
module.exports = {
reporters: ["default"],
automock: false,
bail: false,
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ["**/src/index.js"],
coverageDirectory: "reports/coverage/unit/",
coverageReporters: ["lcov", "text"],
coverageThreshold: {
global: {
branches: 80,
functions: 95,
lines: 90,
statements: 90,
},
},
moduleDirectories: ["node_modules"],
modulePathIgnorePatterns: [],
resetMocks: false,
resetModules: false,
testMatch: ["**/test/**/*.test.js", "**/test-hana/**/*.test.js"],
testPathIgnorePatterns: ["/node_modules/"],
verbose: true,
maxWorkers: 2,
setupFilesAfterEnv: ["./jest.setup.js"],
};