2018-07-30 11:44:39 +00:00
|
|
|
module.exports = {
|
2018-07-30 12:17:49 +00:00
|
|
|
rootDir: './src',
|
2018-09-12 15:12:52 +00:00
|
|
|
automock: false,
|
2018-10-02 17:57:13 +00:00
|
|
|
coverageDirectory: '../coverage/',
|
2018-07-30 11:44:39 +00:00
|
|
|
collectCoverage: true,
|
|
|
|
testURL: 'http://localhost',
|
|
|
|
modulePathIgnorePatterns: [
|
|
|
|
'node_modules',
|
2019-02-25 16:05:36 +00:00
|
|
|
'utils/build.js',
|
2018-09-12 12:39:33 +00:00
|
|
|
'utils/windowUtils.js',
|
2018-09-13 11:08:25 +00:00
|
|
|
'utils/promiseUtils.js',
|
2018-09-13 14:12:48 +00:00
|
|
|
'utils/networkUtils.js',
|
2018-07-30 11:44:39 +00:00
|
|
|
],
|
2018-07-30 12:17:49 +00:00
|
|
|
collectCoverageFrom: [
|
2018-08-27 15:15:22 +00:00
|
|
|
'utils/**.js',
|
2018-10-02 17:55:22 +00:00
|
|
|
'reducers/utils/**.js',
|
2018-07-30 12:17:49 +00:00
|
|
|
],
|
2019-02-25 14:32:25 +00:00
|
|
|
coverageThreshold: {
|
|
|
|
global: {
|
|
|
|
branches: 100,
|
|
|
|
functions: 100,
|
|
|
|
lines: 100,
|
|
|
|
statements: 100,
|
|
|
|
},
|
|
|
|
},
|
2018-09-12 15:12:52 +00:00
|
|
|
setupFiles: [
|
|
|
|
'./support/setupJest.js',
|
|
|
|
],
|
2019-02-05 13:49:34 +00:00
|
|
|
transform: {
|
|
|
|
'^.+\\.jsx?$': 'babel-jest',
|
|
|
|
},
|
2018-07-30 11:44:39 +00:00
|
|
|
};
|