You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
725 B
31 lines
725 B
1 year ago
|
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/vue-jest'
|
||
|
},
|
||
|
testPathIgnorePatterns: [
|
||
|
'<rootDir>/test/e2e'
|
||
|
],
|
||
|
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
|
||
|
setupFiles: ['<rootDir>/test/unit/setup'],
|
||
|
mapCoverage: true,
|
||
|
coverageDirectory: '<rootDir>/test/unit/coverage',
|
||
|
collectCoverageFrom: [
|
||
|
'src/**/*.{js,vue}',
|
||
|
'!src/main.js',
|
||
|
'!src/router/index.js',
|
||
|
'!**/node_modules/**'
|
||
|
]
|
||
|
}
|