2019-10-07 17:24:30 +03:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
rootDir: path.resolve(__dirname, '../'),
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'js',
|
|
|
|
'json',
|
|
|
|
'vue'
|
|
|
|
],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
|
|
},
|
2019-11-02 00:12:27 +03:00
|
|
|
modulePaths: [
|
|
|
|
"<rootDir>"
|
|
|
|
],
|
2019-10-07 17:24:30 +03:00
|
|
|
transform: {
|
2019-11-01 23:21:16 +03:00
|
|
|
'.*\\.js$': '<rootDir>/node_modules/babel-jest',
|
2019-10-07 17:24:30 +03:00
|
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor'
|
2019-10-31 17:24:18 +03:00
|
|
|
},
|
|
|
|
collectCoverageFrom: [
|
|
|
|
"src/*.{js,vue}",
|
|
|
|
]
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|