2.0.0-alpha-2
Features:
- Support passing an array to
stubs
- Support
mocks
- Support
props()
- Support
findComponent
andfindAllComponents
to query for Vue componentsfindComponent(Foo)
findComponent({ ref: 'foo' })
findComponent({ name: 'foo' })
- like in VTU beta
- Support
unmount
method (destroy
from VTU beta)- renamed to match Vue 3 API
- Support
setProps
- Improve
trigger
to 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
globals
key:
mount(Foo, {
globals: {
stubs: {
...
}
}
}
You can read the full API in the docs