npm @vue/test-utils 2.0.0-rc.10
v2.0.0-rc.10

latest releases: 2.4.6, 2.4.5, 2.4.4...
2 years ago

This is a big release with @xanf adding a lot of support for the Vue Compat build. We are now running against the latest Vue version (3.1.2).

Features

feat: support passing component with template to slots
feat(compat): support legacy functional components (#703)
feat(compat): correctly stub components, wrapped in Vue.extend
feat: add @vue/compat initial support (#698)

Fixes

fix(compat): do not stub legacy functional component root
fix(compat): correctly render default slot in stub if requested (#717)
fix: support passing functional components as stub implementation (#700)
fix: Allow finding component by definition when using shallow mount (#696)
fix: opt-out of stubbing by passing false as stub (#702)
fix: do not stub slots content when using shallow mount (#697)
fix: find component by its definition when using stub without name (#704
fix(shallow): correctly stub anonymous components (#714)
fix: findComponent should work using same stub for different components

Other

docs: add example of passing object with template property to slot
chore: improve typings of isComponent helpers
chore: Remove outdated comments about template object support in slots

Don't miss a new test-utils release

NewReleases is sending notifications on new releases.