2018-04-04 12:02:56 +08:00
|
|
|
module.exports = {
|
2018-07-07 15:14:00 +08:00
|
|
|
// The bail config option can be used here to have Jest stop running tests after
|
|
|
|
// the first failure.
|
|
|
|
bail: false,
|
|
|
|
|
|
|
|
// Indicates whether each individual test should be reported during the run.
|
2018-04-04 12:02:56 +08:00
|
|
|
verbose: false,
|
2018-07-07 15:14:00 +08:00
|
|
|
|
|
|
|
// Indicates whether the coverage information should be collected while executing the test
|
2018-04-05 11:27:06 +08:00
|
|
|
collectCoverage: false,
|
2018-07-07 15:14:00 +08:00
|
|
|
|
|
|
|
// The directory where Jest should output its coverage files.
|
2018-04-04 12:02:56 +08:00
|
|
|
coverageDirectory: './coverage/',
|
2018-07-07 15:14:00 +08:00
|
|
|
|
|
|
|
// If the test path matches any of the patterns, it will be skipped.
|
|
|
|
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
|
|
|
|
|
|
|
|
// If the file path matches any of the patterns, coverage information will be skipped.
|
|
|
|
coveragePathIgnorePatterns: ['<rootDir>/node_modules/'],
|
|
|
|
|
|
|
|
// The pattern Jest uses to detect test files.
|
|
|
|
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$',
|
2018-04-04 12:02:56 +08:00
|
|
|
};
|