Support for Vue 3
See original GitHub issueI’ll use this issue to keep track of all efforts to support Vue 3 in the next major version of Vue Testing Library.
All feedback is appreciated! 🚀
Support for Vue 3 is released in next
channel:
https://github.com/testing-library/vue-testing-library/tree/next
Install it by running npm install --save-dev @testing-library/vue@next
.
To do:
- Update types: #180
- Add suport/example for vue-apollo: #192
- Handle Vue Router: #191
- …properly: #195. RFC: #205
- Rethink rerender/setProps: #198 (for now, it stays as it is, because it matches Testing Library ecosystem expectations).
- Find a way to test async components https://github.com/testing-library/vue-testing-library/issues/230
BREAKING CHANGES
- Snapshots are potentially different due to whitespaces.
- Callback function (third parameter of
render
) is now gone. It is replaced withglobal
config options (for example, global.directives). Check all available options in VTU docs. This includes plugins and slots, too. isUnmounted
is gone.updateProps
is now calledrerender
to align with other Testing Lib libraries. For the time being is just an alias to Vue Test Utils’ setProps, but we might want to explore further options to actually rerender the component. This is further discussed in #198.
Other breaking changes that are not directly related to Vue 3:
- removed support for node 10.
Please notice that releases on next
branch will remain on the range of 6.x.x, even if they introduce breaking changes.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:27
- Comments:28 (15 by maintainers)
Top Results From Across the Web
Frequently Asked Questions - Vue.js
What browsers does Vue support? # ... The latest version of Vue (3.x) only supports browsers with native ES2015 support. This excludes IE11....
Read more >Vue.js 3 support - BootstrapVue
Quickly integrate Bootstrap v4 components with Vue.js. ... @vue/compat support is designed for early migration to Vue.js 3 and will be eventually replaced ......
Read more >Which UI Frameworks Support Vue 3? - In Plain English
Amplify UI is a component library (38 components) with support for Vue 3 and focus on Amazon AWS compatibility.
Read more >Vue 3 – A roundup of infos about the new version of Vue.js
This version will be available as a LTS (long-term support) version for 18 months, which means that it will still get security updates...
Read more >The best UI frameworks for Vue 3 - LogRocket Blog
BalmUI features support for Vue 3 since its version 9.0. Balm is based on Google's Material Design, which is why it may look...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, when will
@testing-library/vue
support for Vue 3 switch tolatest
tag?As of today, Vue 3 is now the default Vue version.
Is there anything else we need to do to unblock releasing Vue 3 support? Just the user-event async issue?