You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: MacOs 11.2.3
Node: 14.16.0
NPM: 7.20.1
Any other software related to your bug: Jest, Typescript, Vue 3
What did you get as the error?
After adding the new @quasar/testing-unit-jest@alpha package via quasar ext add @quasar/testing-unit-jest@alpha and running yarn test:unit:ci I get: Module vue-jest in the transform option was not found. (Would have expected you use vue3-jest, since thats whats recommended by Vue-jest to be used with Vue3).
Then when I install latest vue-jest, I get: Error: Cannot find module 'vue-template-compiler' Which makes sense since thats not in Vue 3.
What were you expecting?
No errors and working example test.
What steps did you take, to get the error?
When I rewrite the jest.config.js file to use vue3-jest the tests start running, but your example test fails immediately on: test/jest/__tests__/MyButton.spec.ts:22:23 - error TS2304: Cannot find name 'HTMLElement'.
The text was updated successfully, but these errors were encountered:
vue-jest is currently pretty unstable, as it's going through many changes in how versioning is handled
Since the new version is still in the making and won't support Jest 26, we are stuck into "vue-jest": "^5.0.0-alpha.10" to avoid the breaking changes (there are quite a bit from Jest 26 to Jest 27)
We will support Jest 27 in a future major release, and stick to "vue-jest": "^5.0.0-alpha.10" until then
I just re-tested the AE into a Vue3+TS project and it works fine, can you provide a repro?
Software version
OS: MacOs 11.2.3
Node: 14.16.0
NPM: 7.20.1
Any other software related to your bug: Jest, Typescript, Vue 3
What did you get as the error?
After adding the new @quasar/testing-unit-jest@alpha package via
quasar ext add @quasar/testing-unit-jest@alpha
and runningyarn test:unit:ci
I get:Module vue-jest in the transform option was not found.
(Would have expected you use vue3-jest, since thats whats recommended by Vue-jest to be used with Vue3).Then when I install latest
vue-jest
, I get:Error: Cannot find module 'vue-template-compiler'
Which makes sense since thats not in Vue 3.What were you expecting?
No errors and working example test.
What steps did you take, to get the error?
When I rewrite the
jest.config.js
file to usevue3-jest
the tests start running, but your example test fails immediately on:test/jest/__tests__/MyButton.spec.ts:22:23 - error TS2304: Cannot find name 'HTMLElement'.
The text was updated successfully, but these errors were encountered: