Skip to content

Releases: vuejs/test-utils

v2.0.0-rc.9

24 Jun 04:33
Compare
Choose a tag to compare

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

21 Jun 08:54
Compare
Choose a tag to compare

Features

Fix broken module entry point.

v2.0.0-rc.7

20 Jun 12:29
cbf9ca3
Compare
Choose a tag to compare

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

19 Apr 20:50
Compare
Choose a tag to compare

Fixes

  • emits can be an object (#542)

v2.0.0-rc.5

19 Apr 08:12
Compare
Choose a tag to compare

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

  • add link to docs for slots resolves #452
  • component instance (#466)

v2.0.0-rc.4

12 Mar 04:36
Compare
Choose a tag to compare

Features

  • feat: make isVisible more comprehensive (#454)

Fixes

  • fix: stubbing RouterLink (#438)
  • fix: reactive props for stubs (#453)

Other

  • chore: add LICENSE file (fix #441)

v2.0.0-rc.3

03 Mar 06:41
Compare
Choose a tag to compare

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

28 Feb 11:37
Compare
Choose a tag to compare

Fixes

  • fix: Added prop update on emit for v-model #393
  • fix: record native events against each wrapper they bubble through #394
  • fix: unmount takes no argument since vue-next v3.0.6 #422
  • fix: add hasOwnProperty to wrapper.vm #310

Other

  • enabled better linting
  • enabled strict mode for TypeScript

v2.0.0-rc.1

14 Feb 23:55
Compare
Choose a tag to compare

Minor bug fixes.

Fixes

v2.0.0-rc.0

26 Jan 07:59
Compare
Choose a tag to compare

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

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