-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (38 loc) · 851 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
34
35
36
37
38
39
40
41
// Configuring Jest
// See: https://facebook.github.io/jest/docs/en/configuration.html
module.exports = {
// without this line rootDir will be `./tests`
// 'rootDir': '..',
'moduleFileExtensions': [
'js',
'jsx',
'json',
],
'transform': {
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2|svg|svg\\?inline)$':
'jest-transform-stub',
'^.+\\.jsx?$': 'babel-jest'
},
'moduleNameMapper': {
'^~/(.*)$': '<rootDir>/client/$1',
'^@/(.*)$': '<rootDir>/tests/$1',
},
'testPathIgnorePatterns': [
'/node_modules/',
'/docker/',
],
'collectCoverage': true,
'coverageThreshold': {
'global': {
'branches': 40,
'functions': 40,
'lines': 40,
'statements': 50
},
},
'coveragePathIgnorePatterns': [
'/node_modules/',
'/tests/',
],
'verbose': true,
}