-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (27 loc) · 854 Bytes
/
jest.config.js
File metadata and controls
34 lines (27 loc) · 854 Bytes
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
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/en/configuration.html
*/
export default {
// The test environment that will be used for testing
testEnvironment: 'node',
// See https://jestjs.io/docs/ecmascript-modules
transform: {},
// All imported modules in your tests should be mocked automatically
automock: false,
// Automatically clear mock calls and instances between every test
clearMocks: true,
reporters: ['default'],
collectCoverageFrom: ['src/**/*.js', '!src/logger.js'],
coverageReporters: ['json-summary', 'lcov', 'text', 'html'],
coverageDirectory: '<rootDir>/reports/coverage',
coverageThreshold: {
global: {
statements: 95,
branches: 50,
functions: 95,
lines: 95,
},
},
moduleDirectories: ['node_modules'],
};