Bot releases are visible (Hide)
Published by lmiller1990 about 4 years ago
Published by lmiller1990 about 4 years ago
<slot>
with findComponent
#184 @Jokcyemitted
on functional components https://github.com/vuejs/vue-test-utils-next/commit/09ea3710489bb024850841f7cdf4fecf0213dd9a @lmiller1990Published by lmiller1990 about 4 years ago
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.
Published by lmiller1990 about 4 years ago
<Suspense>
https://github.com/vuejs/vue-test-utils-next/pull/168 @cexbrayatAlso, 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!
Published by lmiller1990 over 4 years ago
flushPromises
utilityPublished by lmiller1990 over 4 years ago
Published by lmiller1990 over 4 years ago
emitted
@lmiller1990Published by lmiller1990 over 4 years ago
@vue/shared
to improve es module experience (#121, @JessicaSachs)Published by lmiller1990 over 4 years ago
config.global.stubs
to work correctly (#116, @lmiller1990)Published by lmiller1990 over 4 years ago
config.renderStubDefaultSlot
@dobromir-hristovshallow
mounting option (previously shallowMount
) @dobromir-hristov
shallowMount
function is still exported, but shallow
mounting option is recommendedDOMWrapper
@lmiller1990fix: improve error message for getComponent
by @cexbrayat
Published by lmiller1990 over 4 years ago
attachTo
: see docs. thanks to our boy @pikaxgetComponent
. Like get
but for component instances. Throws an error if no instance is found. Note: Has a bug where doesn't work with children of <Suspense>
by @cexbrayat!stubs
, findComponent
, improved test coverage @dobromir-hristov!tds
@cexbrayatPublished by lmiller1990 over 4 years ago
stubs
mocks
props()
findComponent
and findAllComponents
to query for Vue components
findComponent(Foo)
findComponent({ ref: 'foo' })
findComponent({ name: 'foo' })
unmount
method (destroy
from VTU beta)
setProps
trigger
to match VTU beta API
wrapper.trigger('keyup.enter', { keycode: 45 })
wrapper.trigger('click', { target: 'something' })
globals
key:mount(Foo, {
globals: {
stubs: {
...
}
}
}
You can read the full API in the docs
Published by lmiller1990 over 4 years ago
First public alpha. Includes basic features as listed in the README at the time of release.