2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-06 11:42:25 +03:00
Files
vue-meta/jest.config.js
T
pimlie 9cfde5b550 feat: make ssr work
feat: update build script

chore: use jiti instead of babel-node for examples
2021-01-25 00:50:46 +01:00

49 lines
792 B
JavaScript

module.exports = {
testEnvironment: 'jest-environment-jsdom-global',
preset: 'ts-jest',
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/**/*.[tj]s'
],
coveragePathIgnorePatterns: [
'node_modules'
],
testPathIgnorePatterns: [
'node_modules'
],
transformIgnorePatterns: [
'node_modules'
],
transform: {
'^.+\\.[tj]s$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest'
},
moduleFileExtensions: [
'ts',
'js',
'json'
],
globals: {
__DEV__: true,
__BROWSER__: true,
}
}