Releases: vuejs/test-utils
v2.0.0-rc.9
Fixes
This reverts this change which was released in v2.0.0-rc.8, relating to the extension. See the PR for an extended discussion.
We will figure out the best approach to supporting the correct .mjs
extension for Test Utils and the rest of the Vue core ecosystem prior to Vue 3.x becoming the main branch on npm.
v2.0.0-rc.8
Features
Fix broken module entry point.
v2.0.0-rc.7
Many small bug fixes in this release. Please file an issue if you find a problem. We are nearing a 2.0.0 release.
Features
feat: array of slots (#599)
feat: add isVisible to VueWrapper (#628)
Fixes
fix: use .mjs extension for ESM bundles
fix: capture emitted events from script setup components (#663)
fix: use prefix identifiers for cjs build (#661)
fix: Gracefully handle empty root node for nested component (#660)
fix: better errors for async find (#641)
fix: shallow config issue (#607)
fix: shallowMount with stub props (#610)
fix: use flushPromises from @vue/test-utils
Other
chore: Add @vue/compiler-dom dep (#591)
v2.0.0-rc.6
Fixes
- emits can be an object (#542)
v2.0.0-rc.5
Lots of fixes. One breaking change around updating props for v-model
. See #459 for the PR and #440 for the discussion and rationale.
Breaking Changes
- fix: revert automatic two way sync of v-model prop values (#459)
Fixes
- using find after using findAllComponents does not match expectations. Fixes #484
- allow global components to be stubbed #504
- use displayName only for functional components #495
- pretty print wrapper.html() output (#510)
- Stub out components prior by key than by name #518
- avoid using prefixIdenntifier in esm (#519)
- don't record native events that are included in emits option #444
- make data mounting option reactive (#540)
Docs
v2.0.0-rc.4
v2.0.0-rc.3
This release includes a minor fix to work around a (internal only) breaking change in Vue 3.0.7.
Fixes
- Vue 3.0.7 compatibility by fixing a bug related to capturing emitted events #437
v2.0.0-rc.2
v2.0.0-rc.1
v2.0.0-rc.0
Things are quite stable at this point. It's unlikely the API will change any time soon. This release candidates marks the final transition towards a stable 2.0.
Fixes
- use devtools emit hook to capture emitted events #296 @cuixiaorui.
This fixes some edge cases, like capturing an emit
event inside of setup
prior to the component getting mounted.
Docs
The docs are now hosted in this repo, as opposed to a separate repo. They are built using Vitepress and deployed via Netlify. Thanks to @bencodezen and @afontcu for making this happen.
Tests
- add a regression tests for setData and watch @lmiller1990