2.0.0-alpha-2
Features:
- Support passing an array to
stubs - Support
mocks - Support
props() - Support
findComponentandfindAllComponentsto query for Vue componentsfindComponent(Foo)findComponent({ ref: 'foo' })findComponent({ name: 'foo' })- like in VTU beta
- Support
unmountmethod (destroyfrom VTU beta)- renamed to match Vue 3 API
- Support
setProps - Improve
triggerto match VTU beta APIwrapper.trigger('keyup.enter', { keycode: 45 })wrapper.trigger('click', { target: 'something' })- etc. Same as VTU beta.
Breaking Changes (from alpha-1)
- stubs, mocks are now in a
globalskey:
mount(Foo, {
globals: {
stubs: {
...
}
}
}
You can read the full API in the docs