-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
46 lines (46 loc) · 921 Bytes
/
Copy pathjest.config.js
File metadata and controls
46 lines (46 loc) · 921 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
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
testEnvironment: 'node',
collectCoverageFrom: [
'bin/**/*.js',
'scripts/**/*.js',
'!**/node_modules/**',
'!**/coverage/**',
'!**/test/**'
],
coverageDirectory: 'coverage',
coverageReporters: [
'text',
'text-summary',
'lcov',
'html',
'json'
],
// Coverage thresholds disabled for CLI tools that run as separate processes
// coverageThreshold: {
// global: {
// branches: 70,
// functions: 70,
// lines: 70,
// statements: 70
// }
// },
testMatch: [
'**/test/**/*.test.js'
],
testPathIgnorePatterns: [
'/node_modules/',
'/coverage/',
'/dist/'
],
verbose: true,
testTimeout: 10000,
setupFilesAfterEnv: [],
clearMocks: true,
restoreMocks: true,
errorOnDeprecated: true,
maxWorkers: '50%',
collectCoverage: false,
bail: false,
forceExit: true,
detectOpenHandles: true
};