mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
8163a9e0e0
turn on runInBand before https://github.com/facebook/jest/issues/7709 gets solved
51 lines
957 B
JavaScript
51 lines
957 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
|
|
expand: true,
|
|
|
|
forceExit: true,
|
|
|
|
// https://github.com/facebook/jest/pull/6747 fix warning here
|
|
// But its performance overhead is pretty bad (30+%).
|
|
// detectOpenHandles: true
|
|
|
|
setupFilesAfterEnv: './test/utils/setup',
|
|
|
|
coverageDirectory: './coverage',
|
|
|
|
collectCoverageFrom: [
|
|
'**/packages/*/src/**/*.js'
|
|
],
|
|
|
|
coveragePathIgnorePatterns: [
|
|
'node_modules/(?!(@nuxt|nuxt))',
|
|
'packages/webpack/src/config/plugins/vue'
|
|
],
|
|
|
|
testPathIgnorePatterns: [
|
|
'node_modules/(?!(@nuxt|nuxt))',
|
|
'test/fixtures/.*/.*?/',
|
|
'examples/.*'
|
|
],
|
|
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(@nuxt|nuxt))'
|
|
],
|
|
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
'^.+\\.js$': 'babel-jest',
|
|
'.*\\.(vue)$': 'vue-jest'
|
|
},
|
|
|
|
moduleFileExtensions: [
|
|
'ts',
|
|
'js',
|
|
'json'
|
|
],
|
|
|
|
reporters: [
|
|
'default'
|
|
].concat(process.env.JEST_JUNIT_OUTPUT ? ['jest-junit'] : [])
|
|
}
|