2019-10-07 17:24:30 +03:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
2020-10-10 22:45:28 +03:00
|
|
|
rootDir: path.resolve(__dirname, '../'),
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'js',
|
|
|
|
'json',
|
|
|
|
'ts',
|
|
|
|
'vue',
|
|
|
|
],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
|
|
},
|
|
|
|
modulePaths: [
|
|
|
|
"<rootDir>"
|
|
|
|
],
|
|
|
|
transform: {
|
|
|
|
'.*\\.js$': '<rootDir>/node_modules/babel-jest',
|
|
|
|
'.*\\.ts$': '<rootDir>/node_modules/ts-jest',
|
|
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor'
|
|
|
|
},
|
|
|
|
collectCoverageFrom: [
|
|
|
|
"src/*.{js,vue}",
|
|
|
|
],
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|