Skip to content

Releases: vuejs/test-utils

v2.0.0-beta.4

10 Sep 02:23
Compare
Choose a tag to compare

Fixes

  • swallow warning for emitted events introduced by Vue rc.10
  • fix(mount): mount should accept a partial config
  • fix: make get() return type adhering to its return type

v2.0.0-beta.3

27 Aug 12:27
Compare
Choose a tag to compare

Fixes

  • allow finding components nested in <slot> with findComponent #184 @Jokcy
  • add warning when attempting to called emitted on functional components 09ea371 @lmiller1990
  • fix bug where error is thrown when unmounting app with fragment as base component #182 @JeremyWuuuuu
  • change plugins API from object to array to support arbitrary options f507480 @leo Zurbriggen

v2.0.0-beta.2

05 Aug 11:39
Compare
Choose a tag to compare

Features

This release is what was supposed to be v2.0.0-beta.1. There was a caching issue where some changes were not published. See release notes for v2.0.0-beta.1.

v2.0.0-beta.1

01 Aug 12:38
Compare
Choose a tag to compare

Features

Also, highly recommend updating your vue-jest version to 5.0.0-alpha.2. You can now get started with Vue 3 + test utils with the Vue-CLI!

v2.0.0-beta.0

15 Jul 13:07
Compare
Choose a tag to compare

Features

  • export a flushPromises utility

2.0.0-alpha.8

01 Jul 10:19
Compare
Choose a tag to compare

Features

2.0.0-alpha.7

25 Jun 11:52
9468fc1
Compare
Choose a tag to compare

Features

Refactors

Improvements

  • improve readme @cnschwarz
  • remove @vue/compiler-sfc as peer dependency @sodatea

2.0.0-alpha.6

16 May 05:12
Compare
Choose a tag to compare

Fixes

2.0.0-alpha.5

16 May 01:10
Compare
Choose a tag to compare

Features:

Fixes

  • esm build no longer relies on cjs modules. You can now use VTU as an es module in a browser directly. Try it with Vite - it's great! (#116, @lmiller1990)
  • fix config.global.stubs to work correctly (#116, @lmiller1990)
  • allow mounting functional components (#118, @dobromir-hristov)

2.0.0-alpha.4

08 May 09:25
Compare
Choose a tag to compare

Features

  • do not mount on body/clear body every test @pikax
  • allow rendering all slots of a stub via config.renderStubDefaultSlot @dobromir-hristov
  • split attrs and props mounting options @cexbrayat
  • shallowmounting option (previously shallowMount) @dobromir-hristov
    • shallowMount function is still exported, but shallow mounting option is recommended
  • export DOMWrapper @lmiller1990

Fixes

fix: improve error message for getComponent by @cexbrayat

Other

  • lots of general improvements to various types