-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.js
33 lines (33 loc) · 821 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
30
31
32
33
module.exports = {
roots: ['<rootDir>/tests/'],
verbose: true,
clearMocks: true,
moduleFileExtensions: ['js'],
testEnvironment: 'node',
testMatch: ['**/*.test.js', '**/__tests__/**/?(*.)+(spec|test).js'],
testRunner: 'jest-circus/runner',
testPathIgnorePatterns: ['/node_modules/', '/__fixtures__/'],
transform: {
'^.+\\.js$': 'babel-jest',
},
collectCoverage: true,
collectCoverageFrom: [
'!**/dist/**',
'!**/node_modules/**',
'!**/vendor/**',
'!**/generated/**',
'!**/__fixtures__/**',
'!**/scenarios/**',
'!**/redirects/**',
],
coverageThreshold: {
global: {
branches: 75,
functions: 75,
lines: 75,
statements: 75,
},
},
coverageDirectory: './coverage',
coverageReporters: ['json', 'lcov', 'text', 'clover', 'html'],
};