mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 05:49:37 +03:00
5f8025e126
fix: issues discovered by adding missing tests
43 lines
705 B
JavaScript
43 lines
705 B
JavaScript
module.exports = {
|
|
testEnvironment: 'jest-environment-jsdom-global',
|
|
|
|
expand: true,
|
|
|
|
forceExit: false,
|
|
|
|
// 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: [
|
|
'**/src/**/*.js'
|
|
],
|
|
|
|
coveragePathIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
testPathIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
transformIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
transform: {
|
|
'^.+\\.js$': 'babel-jest',
|
|
'.*\\.(vue)$': 'vue-jest'
|
|
},
|
|
|
|
moduleFileExtensions: [
|
|
'ts',
|
|
'js',
|
|
'json'
|
|
]
|
|
}
|