2018-03-18 23:41:14 +00:00
|
|
|
module.exports = {
|
2018-03-19 15:49:16 +00:00
|
|
|
testEnvironment: 'node',
|
|
|
|
coverageDirectory: './coverage/',
|
2018-04-08 14:41:12 +00:00
|
|
|
collectCoverageFrom: [
|
|
|
|
'lib/!(app)/**',
|
|
|
|
'!lib/builder/webpack/plugins/vue/**'
|
2018-03-29 07:20:48 +00:00
|
|
|
],
|
2018-03-27 22:28:17 +00:00
|
|
|
setupTestFrameworkScriptFile: './test/utils/setup',
|
|
|
|
testPathIgnorePatterns: ['test/fixtures/.*/.*?/'],
|
2018-07-24 10:12:46 +00:00
|
|
|
moduleFileExtensions: ['js', 'mjs', 'json'],
|
|
|
|
expand: true,
|
2018-08-10 15:55:39 +00:00
|
|
|
forceExit: true
|
2018-07-24 10:37:56 +00:00
|
|
|
// https://github.com/facebook/jest/pull/6747 fix warning here
|
2018-08-10 15:55:39 +00:00
|
|
|
// But its performance overhead is pretty bad (30+%).
|
|
|
|
// detectOpenHandles: true
|
2018-03-18 23:41:14 +00:00
|
|
|
}
|