mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 23:28:35 +00:00
25 lines
656 B
JavaScript
25 lines
656 B
JavaScript
module.exports = {
|
|
moduleFileExtensions: ["ts", "js", "json", "vue"],
|
|
watchman: false,
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/$1",
|
|
"^~/(.*)$": "<rootDir>/$1",
|
|
"^vue$": "vue/dist/vue.common.js",
|
|
},
|
|
transform: {
|
|
"^.+\\.ts$": "ts-jest",
|
|
"^.+\\.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",
|
|
testEnvironment: "jsdom",
|
|
}
|