2018-03-18 23:41:14 +00:00
|
|
|
module.exports = {
|
2018-03-19 15:49:16 +00:00
|
|
|
testEnvironment: 'node',
|
2018-10-17 21:28:25 +00:00
|
|
|
|
2018-07-24 10:12:46 +00:00
|
|
|
expand: true,
|
2018-10-17 21:28:25 +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-10-17 21:28:25 +00:00
|
|
|
|
|
|
|
setupTestFrameworkScriptFile: './test/utils/setup',
|
|
|
|
|
|
|
|
coverageDirectory: './coverage',
|
|
|
|
|
|
|
|
collectCoverageFrom: [
|
|
|
|
'packages/*/src/**/*.js',
|
|
|
|
'packages/cli/bin/*'
|
|
|
|
],
|
|
|
|
|
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
'node_modules',
|
|
|
|
'packages/app',
|
2018-10-24 16:55:18 +00:00
|
|
|
'packages/webpack/plugins/vue'
|
2018-10-17 21:28:25 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
testPathIgnorePatterns: [
|
|
|
|
'node_modules',
|
|
|
|
'test/fixtures/.*/.*?/',
|
|
|
|
'examples/.*'
|
|
|
|
],
|
|
|
|
|
|
|
|
transformIgnorePatterns: [
|
|
|
|
'/node_modules/',
|
|
|
|
'/dist/'
|
|
|
|
],
|
|
|
|
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'js',
|
|
|
|
'json'
|
|
|
|
]
|
2018-03-18 23:41:14 +00:00
|
|
|
}
|