hoppscotch/packages/hoppscotch-app/jest.config.js

21 lines
560 B
JavaScript
Raw Normal View History

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,
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
}