18 lines
358 B
JavaScript
18 lines
358 B
JavaScript
|
const path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
rootDir: path.resolve(__dirname, '../'),
|
||
|
moduleFileExtensions: [
|
||
|
'js',
|
||
|
'json',
|
||
|
'vue'
|
||
|
],
|
||
|
moduleNameMapper: {
|
||
|
'^@/(.*)$': '<rootDir>/src/$1'
|
||
|
},
|
||
|
transform: {
|
||
|
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
|
||
|
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor'
|
||
|
}
|
||
|
}
|