mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-07 04:02:23 +03:00
9d62122d22
test: convert tests to ts
46 lines
667 B
JavaScript
46 lines
667 B
JavaScript
module.exports = {
|
|
testEnvironment: 'jest-environment-jsdom-global',
|
|
preset: 'ts-jest',
|
|
|
|
expand: true,
|
|
|
|
forceExit: false,
|
|
|
|
setupFilesAfterEnv: ['./test/utils/setup'],
|
|
|
|
coverageDirectory: './coverage',
|
|
|
|
collectCoverageFrom: [
|
|
'src/**/*.[tj]s'
|
|
],
|
|
|
|
coveragePathIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
testPathIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
transformIgnorePatterns: [
|
|
'node_modules'
|
|
],
|
|
|
|
transform: {
|
|
'^.+\\.jsx?$': 'babel-jest',
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
'^.+\\.vue$': 'vue-jest'
|
|
},
|
|
|
|
moduleFileExtensions: [
|
|
'ts',
|
|
'js',
|
|
'json'
|
|
],
|
|
|
|
globals: {
|
|
__DEV__: true,
|
|
__BROWSER__: true,
|
|
}
|
|
}
|