Nuxt/jest.config.js
Pooya Parsa 9c1e0d1743 feat: migrate nuxt into monorepo (#4051)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
2018-10-18 00:58:25 +03:30

43 lines
757 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
setupTestFrameworkScriptFile: './test/utils/setup',
coverageDirectory: './coverage',
collectCoverageFrom: [
'packages/*/src/**/*.js',
'packages/cli/bin/*'
],
coveragePathIgnorePatterns: [
'node_modules',
'packages/app',
'packages/builder/webpack/plugins/vue'
],
testPathIgnorePatterns: [
'node_modules',
'test/fixtures/.*/.*?/',
'examples/.*'
],
transformIgnorePatterns: [
'/node_modules/',
'/dist/'
],
moduleFileExtensions: [
'js',
'json'
]
}