[vue-jest] Error: Vue template compilation failed
at error (node_modules/vue-jest/lib/utils.js:128:9)
at logResultErrors (node_modules/vue-jest/lib/utils.js:140:5)
at processTemplate (node_modules/vue-jest/lib/process.js:100:3)
at Object.module.exports [as process] (node_modules/vue-jest/lib/process.js:137:26)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:464:35)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
when attempting to test any of my components that have a template slot in the. I'm using Quasar as my framework and certain things need to be done via slots on the Quasar components.
This immediately fails a jest test with the above error and I can reproduce on any component I have that is using template slots on its quasar parts, if i remove the <Template #loading> then it works fine.
Hi,
I'm getting the error
when attempting to test any of my components that have a template slot in the. I'm using Quasar as my framework and certain things need to be done via slots on the Quasar components.
Example:
This immediately fails a jest test with the above error and I can reproduce on any component I have that is using template slots on its quasar parts, if i remove the <Template #loading> then it works fine.
Any fix/ideas?