-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (27 loc) · 747 Bytes
/
Copy pathjest.config.js
File metadata and controls
28 lines (27 loc) · 747 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
export default {
testEnvironment: 'node',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
collectCoverageFrom: [
'atoms.js',
'builderBot/**/*.js',
'!**/node_modules/**',
'!**/__tests__/**',
'!**/jest.setup.js',
],
coverageProvider: 'v8',
coverageReporters: ['text', 'lcov', 'html'],
coverageThreshold: {
global: {
branches: 50, // Will increase as we add more tests
functions: 85, // Will increase as we add more tests
lines: 80, // Will increase as we add more tests
statements: 80, // Will increase as we add more tests
},
},
testMatch: ['**/__tests__/**/*.test.js'],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
testTimeout: 30000,
forceExit: true,
};