Releases: vuejs/vue-test-utils
Releases · vuejs/vue-test-utils
v1.0.0-beta.32
v1.0.0-beta.31
Bug Fixes
- Stop
trigger
from working on disabled html elements (#1362) - Add provide/inject support for Composition API (#1354)
- Fix issue with keyCodes provided to
trigger
(#1378) closes #1285, #1295 - setChecked and setSelected should only work if not already selected (#1380) closes #1339
- Override watch definitions properly (#1392) closes #1391
- Support v-slot (#1383) closes #1261
- Allow find to work on both Pascal case and camel case (#1398) closes #1232
- Pass refs to functional component stubs #1293 closes #1292
Features
v1.0.0-beta.30
@vue/test-utils
Bug Fixes
- polyfill Element.matches for IE < 11 (#1230) (5e04331), closes #1223
- types: allow
false
as a component stub value (#1231) (2a4c6ef) - respect "hidden" attributes in
isVisible()
(#1257) (950763f)
Code Refactoring
Features
- wrapper: allow
destroy()
method to work with functional components (#1188) (f4ea3fd) - add option to pretty print html components (#1229) (99336c4)
- stop auto stubbing transition and transition-group (#1127) (85a972c)
BREAKING CHANGES
- html output will now be formatted
- Remove
sync
mode (https://vue-test-utils.vuejs.org/guides/#common-tips) - Remove TransitionStub
- Remove Transition
@vue/server-test-utils
Bug Fixes
- return promise from
render()
andrenderToString()
(#1164) (3c597d3) - types: allow
false
as a component stub value (#1231) (2a4c6ef)
Code Refactoring
Features
BREAKING CHANGES
render()
andrenderToString()
are now async
v1.0.0-beta.29
1.0.0-beta.29 (2019-02-02)
This beta version uses the new Vue async option for synchronous rendering.
Bug Fixes
- handle errors in destroy (#1106) (efab983)
- handle options applied by mixins (#1101) (d2f26e8)
- use Vue async option for sync mode (#1062) (4c65dbd)
BREAKING CHANGES
- Remove
hasStyle
,hasAttribute
,hasClass
,hasProp
,visible
, andsetComputed
- Use Vue async mode, this has caused bugs and will be reverted (see #1137)
- Remove polyfills from library
v1.0.0-beta.28
1.0.0-beta.28 (2018-12-29)
Bug Fixes
- add custom data to events (#1076) (73f0e91)
- add stub without modifying (#1085) (1f4876e)
- improve filter typing (#1077) (a0528ca)
- keep components when adding stubs (#1075) (5e92c10)
- support registered components in scopedSlots (#1065) (d4c118b)
- use correct event type for checkbox v-model handler (#1083) (ef66c26)
v1.0.0-beta.27
v1.0.0-beta.26
1.0.0-beta.26 (2018-11-26)
Bug Fixes
- Add functions to scoped slots typing (#1022) (8db0c20)
- Create stubs dynamically (#1038) (e1fd705), closes #973 #994 #995
- Do not remove cached constructors (#962) (71ec3b9)
- Render all slots inside a vnode (#979) (c04d3bf)
- Stop extending from constructor functions (#1014) (2648213)
- Support async components in stubs (#1039) (6a4e19d), closes #1026
- Use correct event interface (#977) (8771b8f)
- Pass listeners to functional components (#1036) (7a1a49e)
- Support lazily added components (#1005) (3653c60)
- Undefined attributes parsed as $attrs (#1029) (0d3e46d)
- The tag name rendered by snapshots will use the rendered component tag, rather than the registered component name
Features
BREAKING CHANGES
v1.0.0-beta.25
v1.0.0-beta.24
v1.0.0-beta.22
1.0.0-beta.22 (2018-07-29)
Bug Fixes
- Render unused propsData as component attributes (#865) (c747cd6)
- Clear static tree for slots render (#862) (c7ac0d9)
- Handle dynamic imports (#864) (4e739bd)
- Keep the overrides prototype information of component (#856) (0371793)
- Render children for functional component stubs (#860) (e2e48dc)
- Stub globally registered components (#859) (5af3677)
- Support multiple default slot nodes (#861) (85dd3ec)