Open kazupon opened 3 years ago
After investigating, I tried to change the code to be compatible with vue-jest@5
. I will open a PR soon.
Several changes are to be expected:
process
function, the vueOptionsNamespace
argument has been renamed to componentNamespace
.
See [vue-jest] feat: support custom blocks for Vue 3 #364vue-jest
did the work so that we could return an array of strings directly.
It does not seem to support version 5. When I try to run tests, I have this exception:
With this Jest configuration:
It's fail here:
https://github.com/vuejs/vue-jest/blob/6edfa9cd93be05ca4c9c41849db668dbf2ae92d5/packages/vue3-jest/lib/generate-code.js#L70-L72
I tried to debug, and the value of variable
codes
is a string:This string is not iterable here.
My dependencies version: