module.exports = { // tell Jest to handle `*.vue` files moduleNameMapper: { '^~/(.*)$': '/$1', '^~~/(.*)$': '/$1', '^@/(.*)$': '/$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, collectCoverageFrom: ['/utils/**/*.js'], testPathIgnorePatterns: ['/cypress/', '/components/'], }