feat: add build step to allow for nullish coalescing and optional chaining

This commit is contained in:
Andrew Bastin
2021-12-29 11:15:49 +05:30
parent 07171396ad
commit f8bbf6613f
4 changed files with 68 additions and 84 deletions

View File

@@ -11,6 +11,13 @@ module.exports = {
"^.+\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest",
},
globals: {
"vue-jest": {
templateCompiler: {
compiler: require("vue-template-babel-compiler"),
},
},
},
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
snapshotSerializers: ["jest-serializer-vue"],
collectCoverage: true,