fix: test breaking for script setup

This commit is contained in:
Andrew Bastin
2021-11-17 21:08:18 +05:30
parent 9f944506e0
commit 407dad8c7f
4 changed files with 26 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ module.exports = {
transform: {
"^.+\\.ts$": "ts-jest",
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest",
".*\\.(vue)$": require.resolve("./jest-script-setup-transform.js"),
},
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
snapshotSerializers: ["jest-serializer-vue"],