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