Releases: vuejs/vue-test-utils
v1.1.4
Feat
- export ErrorWrapper #1814
Fixes
- trigger('focus') added natural to jsdom behavior (#1777)
- fix max range stack size (f#1768)
- VTU don't return key property to event when use trigger.('eventName.key') #1808
- allow find stubbed functional component by name (#1817)
Types
- add type definitions for ExtendedVue (#1789)
v1.1.3
v1.1.2
v1.1.1
Many small bug fixes.
Features
- feat: treat document.body in attachTo in special way (#1699) @xanf
- feat(config): introduce deprecation warning handler, fix #1672
- feat: warn when operating on destroyed Vue component (#1706) @xanf
- add the wrapper.getComponent method and corresponding documents. (#1714)
- feat(test-utils): add types for auto destroy methods (#1724) @blake-newman
- feat: add abstract property to the core property of the component (#1716) @ustbhuangyi
Fixes
- fix(test-utils/wrapper): clarify deprecation note for wrong "get" usage @valentinpalkovic
- fix: support v-text on child functional components with shallowMount @jeremy-cassou
- fix(setData): allow empty objects to be set fix #1704 @Haroenv
- fix: ignore non-vue wrapper for auto-destroy (#1723)
v1.1.0
This is a pretty significant release. We undeprecated is
and isVisible
due to popular demand.
Features
- createLocalVue errorHandler Option (#1670) @AtofStryker
- remove deprecation warning from
isVisible
method (#1675) @xanf - feat: remove deprecation when
is
is called with component definition @xanf - support components returning render function from setup @LeBenLeBen
Fixes
Sync mode cleanup (#1671) @AtofStryker
v1.0.5
This release is mostly fixing small things, with some better support for @vue/composition-api
plugin users. 4 bugfixes from 4 separate users, the Vue community is too cool 😎
Features and Fixes
fix: handle shallowMount on components with v-if and scoped slots (#1663) by @xanf
fix: extend Vue parent with options to support accessing root for better @vue/composition-api
fixing (#1655) support by @lmiller1990
fix: Match how the Vue runtime executes scoped slots #1660 by @sirlancelot
fix: Wrapper array consistency (#1650) by @AtofStryker
Dependencies and Misc
build(rollup): upgrade rollup from 1.x to 2.x (#1645) @AtofStryker
Upgrade Vuepress, Flow, and misc (#1646) @AtofStryker
Upgrade Eslint (#1647)
Great job everyone! Especially @AtofStryker with several significant PRs.
v1.0.4
Features
- allow array for multiselect .setValue() method (#1554)
Fixes
- iife build (#1555)
- allow using findComponent on a functional component (#1593)
- fix(setprops): allowed for setProps to be synced with nextTick intervals (#1618)
Other
There was some big infrastructure changes (Jest, Babel version) in this release with #1629 by @AtofStryker. Thanks a lot! If this has introduced any bugs, please file an issue.
v1.0.3
This is a small release, mainly to improve the deprecation messages.
Bugfix/improvements
fix #1541: Improve deprecation messages (#1548)
fix: added missing import of the Cheerio type (fix #1526) (#1527)
fix: Add attachToDocument conditional deprecation message, (#1546)
fix: Sync docs with v1.0 (#1538)
v1.0.0
It's here 🎉
Features
- add support of arbitrary mounting point via attachTo option (#1492)
feat: stub out transitions by default (#1411) - feat(test-utils): add 'overview' function (#1491)
- return nextTick from setters
You may now await
methods that update the DOM, where you would have used nextTick
before. #1517. For example:
// before
wrapper.trigger('click')
await wrapper.vm.$nextTick()
// after
await wrapper.trigger('click')
Other
- This is v1, and some methods will be deprecated moving forward as per this RFC. (#1518) Warnings have been added. You can disable these warnings with
config.showDeprecationWarnings
:
import { config } from `@vue/test-utils`
config.showDeprecationWarnings = false
There are some bugs that may never be fixed, or require a significant rethink of the architecture. This release does not reflect a perfect library, but one that is stable and unlikely to change or go away anytime soon. Significant changes will now go via the RFC process. Finally, we will continue to update the library - 1.0 does not mean "done and dusted".
We are working on support for Vue 3! Find it here.
Thanks to all the contributors who helped us finally hit the 1.0.0 🖖
v1.0.0-beta.33
1.0.0-beta.33 (2020-04-08)
Note: this is the final beta. Next will be 1.0.
Bug Fixes
- create-instance: revert stubbing of component _Ctor (#1479) (70b553b)
- Add v-slot support in scopedSlots property, fix #1457 (#1485) (4df7619)
- test-utils: fix cancelable attribute in dom events (#1460) (b1a532a)
- Respect provide from parentComponent (#1301
- #1377 string stubs dropping props (#1473)