module.exports = { moduleNameMapper: { '^@/(.*)$': '/$1', '^~/(.*)$': '/$1', '^vue$': 'vue/dist/vue.common.js', }, moduleFileExtensions: ['ts', 'js', 'vue', 'json'], transform: { '^.+\\.ts$': 'ts-jest', '^.+\\.js$': 'babel-jest', '.*\\.(vue)$': 'vue-jest', }, collectCoverage: true, collectCoverageFrom: [ '/components/**/*.vue', '/pages/**/*.vue', ], testEnvironment: 'jsdom', }