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