2021-05-17 05:55:50 +00:00
|
|
|
module.exports = {
|
|
|
|
moduleFileExtensions: ["ts", "js", "json", "vue"],
|
|
|
|
watchman: false,
|
|
|
|
moduleNameMapper: {
|
2021-06-27 18:54:16 +00:00
|
|
|
"^@/(.*)$": "<rootDir>/$1",
|
2021-05-17 05:55:50 +00:00
|
|
|
"^~/(.*)$": "<rootDir>/$1",
|
2021-06-27 18:54:16 +00:00
|
|
|
"^vue$": "vue/dist/vue.common.js",
|
2021-05-17 05:55:50 +00:00
|
|
|
},
|
|
|
|
transform: {
|
2021-06-27 18:54:16 +00:00
|
|
|
"^.+\\.ts$": "ts-jest",
|
2021-05-17 05:55:50 +00:00
|
|
|
"^.+\\.js$": "babel-jest",
|
|
|
|
".*\\.(vue)$": "vue-jest",
|
|
|
|
},
|
|
|
|
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
|
|
|
|
snapshotSerializers: ["jest-serializer-vue"],
|
|
|
|
collectCoverage: true,
|
|
|
|
collectCoverageFrom: [
|
|
|
|
"<rootDir>/components/**/*.vue",
|
|
|
|
"<rootDir>/pages/*.vue",
|
|
|
|
],
|
|
|
|
testURL: "http://localhost/",
|
|
|
|
preset: "ts-jest/presets/js-with-babel",
|
2021-05-30 13:40:20 +00:00
|
|
|
testEnvironment: "jsdom",
|
2021-05-17 05:55:50 +00:00
|
|
|
}
|