Releases: vuejs/test-utils
Releases · vuejs/test-utils
v2.0.0-beta.4
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
Fixes
- allow finding components nested in
<slot>
withfindComponent
#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
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
Features
- Support Vue 3 rc5 @cexbrayat
- Support finding a component in
<Suspense>
#168 @cexbrayat - Now available in the Vue CLI.
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
Features
- export a
flushPromises
utility
2.0.0-alpha.8
Features
- Vue beta 16 comparability by @cexbrayat
2.0.0-alpha.7
Features
- Various typing improvements by @cexbrayat, @pikax
- Improve typings for
emitted
@lmiller1990 - Support Vue 3 beta 15 @cexbrayat
Refactors
- rename setModelValue to setValue #133 @dobromir-hristov
- improve tests by @afontcu
Improvements
- improve readme @cnschwarz
- remove @vue/compiler-sfc as peer dependency @sodatea
2.0.0-alpha.6
Fixes
- inline
@vue/shared
to improve es module experience (#121, @JessicaSachs)
2.0.0-alpha.5
Features:
- Implement Scoped Slot string support (#115, @dobromir-hristov)
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
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
shallow
mounting option (previouslyshallowMount
) @dobromir-hristovshallowMount
function is still exported, butshallow
mounting option is recommended
- export
DOMWrapper
@lmiller1990
Fixes
fix: improve error message for getComponent
by @cexbrayat
Other
- lots of general improvements to various types