2021-04-12 12:13:08 +03:00
|
|
|
module.exports = {
|
|
|
|
// tell Jest to handle `*.vue` files
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^~/(.*)$': '<rootDir>/$1',
|
|
|
|
'^~~/(.*)$': '<rootDir>/$1',
|
|
|
|
'^@/(.*)$': '<rootDir>/$1',
|
|
|
|
},
|
|
|
|
moduleFileExtensions: ['js', 'json', 'vue'],
|
|
|
|
transform: {
|
|
|
|
// process js with `babel-jest`
|
|
|
|
'^.+\\.js$': 'babel-jest',
|
|
|
|
// process `*.vue` files with `vue-jest`
|
|
|
|
'.*\\.(vue)$': 'vue-jest',
|
|
|
|
},
|
|
|
|
collectCoverage: true,
|
2021-05-03 12:33:03 +03:00
|
|
|
collectCoverageFrom: ['<rootDir>/utils/**/*.js'],
|
|
|
|
testPathIgnorePatterns: ['/cypress/', '/components/'],
|
2021-04-12 12:13:08 +03:00
|
|
|
}
|