-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjest.config.js
More file actions
42 lines (36 loc) · 856 Bytes
/
jest.config.js
File metadata and controls
42 lines (36 loc) · 856 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
module.exports = {
setupTestFrameworkScriptFile: './__test__/setupTests.js',
rootDir: 'src',
testMatch: ['**/*.test.js'],
collectCoverage: true,
coverageDirectory: '<rootDir>/../coverage',
'snapshotSerializers': ['enzyme-to-json/serializer'],
collectCoverageFrom: [
'**/*.js',
'!**/node_modules/**',
'!**/*.story.js',
'!**/*.stories.js',
'!**/*.test.js',
'!**/__test__/**'
],
coverageReporters: ['lcov', 'text', 'text-summary'],
moduleDirectories: [
'node_modules',
'<rootDir>'
],
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70
}
},
transform: {
'^.+\\.js$': 'babel-jest'
},
moduleNameMapper: {
'\\.(css|less|s(c|a)ss)$': '<rootDir>/../__mocks__/style.js',
'services(.*)$': '<rootDir>/services$1'
}
}