module.exports = { moduleFileExtensions: ["ts", "js", "json", "vue"], watchman: false, moduleNameMapper: { "^@/(.*)$": "/$1", "^~/(.*)$": "/$1", "^vue$": "vue/dist/vue.common.js", }, transform: { "^.+\\.ts$": "ts-jest", "^.+\\.js$": "babel-jest", ".*\\.(vue)$": "vue-jest", }, setupFilesAfterEnv: ["/jest.setup.js"], snapshotSerializers: ["jest-serializer-vue"], collectCoverage: true, collectCoverageFrom: [ "/components/**/*.vue", "/pages/*.vue", ], testURL: "http://localhost/", preset: "ts-jest/presets/js-with-babel", testEnvironment: "jsdom", }