2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-07 10:32:24 +03:00
Files
vue-meta/jest.config.js
pimlie 9d62122d22 chore: improve types
test: convert tests to ts
2021-04-05 01:01:28 +02:00

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,
}
}