-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Labels
intend to implementThe team has the intention to implement this feature at some point. Contribution is also welcome.The team has the intention to implement this feature at some point. Contribution is also welcome.
Description
What problem does this feature solve?
The cli-plugin-unit-jest currently relies on jest v26, with vue-jest v5 for Vue 3 and v4 for Vue 2.
ts-jest v26 is used as well for TS projects.
A new package called vue3-jest has been introduced by the testing team to support Vue 3, with a versioning similar to what babel-jest and ts-jest do. An alpha release is available to support Jest v27 ([email protected] currently, see vuejs/vue-jest#343).
Even with this package, it's currently difficult to update to Jest v27, as the the plugin depends on jest 26 explicitly.
See vuejs/vue-jest#343 (comment) for a workaround using Yarn resolutions.
What does the proposed API look like?
The idea would be to:
- use vue3-jest@27 for Vue 3 (template and presets)
- make jest an explicit dependency of Vue projects, as it has been done for
ts-jestandvue-jest, allowing to update the Jest version to v27 - bump babel-jest and ts-jest to v27 in the generated template
If that sounds good, I can try to work an PR, to hopefully land this in CLI v5
Miguel-Bento-Github and jlim9333
Metadata
Metadata
Assignees
Labels
intend to implementThe team has the intention to implement this feature at some point. Contribution is also welcome.The team has the intention to implement this feature at some point. Contribution is also welcome.