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}",
|
2020-02-26 18:11:34 +03:00
|
|
|
],
|
2020-02-27 09:18:51 +03:00
|
|
|
// verbose: true
|
2019-10-07 17:24:30 +03:00
|
|
|
}
|