20 KiB
20 KiB
Change Log
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.0.5 (2020-08-29)
Note: Version bump only for package @vue/test-utils
1.0.4 (2020-08-17)
Bug Fixes
- setprops: allowed for setProps to be synced with nextTick intervals (#1618) (9a3e6f9), closes #1419
- allow using findComponent on a functional component (#1593) (2d6b497)
1.0.2 (2020-05-06)
Note: Version bump only for package @vue/test-utils
1.0.0 (2020-05-05)
Features
- add support of arbitrary mounting point via attachTo option (#1492) (f3d0d3f)
- Optionally hide deprecation errors (#1518) (7a0b7e0)
- return nextTick from setters, fix #1515 (#1517) (aa7b76d)
- stub out transitions by default (#1411) (6f0a41a)
- test-utils: add ‘overview’ function (#1491) (4b0c5c9), closes #1461
1.0.0-beta.33 (2020-04-08)
Bug Fixes
Features
1.0.0-beta.32 (2020-03-09)
Bug Fixes
- types: emitted can return undefined (#1431) (b41a09d)
- improvement functional component features (#1427) (ebcf97c)
1.0.0-beta.31 (2020-01-18)
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
- Allow templates to be defined in HTML (#1362) closes #351
- Store the selector when using
find
(#1248) closes #1135 - Introduce enableAutoDestroy() helper function (#1245) closes #1236
- Allow negative indices to be passed to .at() (#1244)
- Add a get method to Wrapper (#1304) closes #1298
# 1.0.0-beta.30 (2019-11-28)
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
- Remove
- Remove TransitionStub
- Remove Transition
# 1.0.0-beta.29 (2019-02-02)
Bug Fixes
Code Refactoring
BREAKING CHANGES
- Remove polyfills from library
- hasStyle, hasAttribute, hasClass, hasProp, visible, and setComputed removed
1.0.0-beta.28 (2018-12-29)
Bug Fixes
- add custom data to events (#1076) (73f0e91)
- improve filter typing (#1077) (a0528ca)
- use correct event type for checkbox v-model handler (#1083) (ef66c26)
1.0.0-beta.27 (2018-12-09)
Bug Fixes
- fix references to documents in warnings (#1052) (45e2fe4)
- remove cached constructors (#1059) (aea1c94)
- stop stubs leaking with localVue (#1056) (5500553)
1.0.0-beta.26 (2018-11-26)
Bug Fixes
- add functions to scoped slots typing (#1022) (8db0c20)
- create stubs in render (#1038) (e1fd705), closes #973 #994 #995
- do not remove cached constructors (#962) (71ec3b9)
- use correct event interface (#977) (8771b8f)
Features
- support lazily added components (#1005) (3653c60)
- undefined attributes parsed as $attrs (#1029) (0d3e46d)
BREAKING CHANGES
- The tag name rendered by snapshots will use the rendered component tag, rather than the registered component name
1.0.0-beta.25 (2018-09-08)
Bug Fixes
- handle global stubs and functional extended components (#943) (0d1ddd1)
- improve emitted type (#933) (3049c3e)
- throw error if unsupported options passed in vue < 2.3 (#910) (e8d9547)
Features
Performance Improvements
1.0.0-beta.24 (2018-08-05)
Bug Fixes
1.0.0-beta.23 (2018-07-31)
Note: Version bump only for package @vue/test-utils
1.0.0-beta.22 (2018-07-29)
Bug Fixes
- stub globally registered components (#859) (5af3677)
- support multiple default slot nodes (#861) (85dd3ec)
Features
- export createWrapper method to create wrapper from instance (#868) (ebca3b3)
- export wrapper class (#866) (c212ebf)
1.0.0-beta.21 (2018-07-22)
Bug Fixes
- handle textarea correctly in setValue() and setChecked() (#771) (4c9fe3c)
- types: remove unnecessary method (#755) (2068208)
- broken links for deprecated methods (#786) (5bb6a0b)
- fix type of wrapper.vm (#759) (ff5220d)
- handle cloneDeep errors in createLocalVue (#844) (17dfdc8)
- handle unnamed parent and child components (#768) (71a2ac4)
- improve scopedSlots option (#808) (b946997)
- recursively call Vue.set in setData (#843) (ef01abf)
- setProps() throws an error if the property is the same reference (#791) (bf655f3)
- stubs extended component correctly (#767) (24ab4c5)
- support setValue on textarea (#764) (e83cda2)
- update props when watcher depends on value (#842) (2aeaee3)
- use boolean for VueWrapper (#763) (6fa6ecd)
Features
1.0.0-beta.20 (2018-06-24)
Bug Fixes
Features
- element, vnode, vm, and options are read-only (#748) (b801c25)
- set wrapper.vm if the element binds Vue instance (#724) (b14afae)
- throw error if the read-only property is tried to change (#749) (fb46268)
1.0.0-beta.19 (2018-06-14)
Bug Fixes
- include default props in props object (#716) (5bcf574)
- wrapper.setSelected() to work on select with optgroups (#715) (dae0b1c)
Features
1.0.0-beta.18 (2018-06-09)
Bug Fixes
1.0.0-beta.17 (2018-06-09)
Bug Fixes
- add updated hook (#675) (9a2a25a), closes #661
- do not deep merge array data (#604) (934745b)
- method should be updated when triggering (3922ab7)
- remove includes and findIndex (#610) (a70a887)
- remove throw from errorHandler (#655) (b4517ab)
- type definition of classes method (#685) (a864ed3)
- Update links to docs (#670) (2f162e6), closes #3
Features
- add parent in create-instance (#586) (0ab5a75)
- Add setValue method (#557) (b4331ff)
- overwrite arrays in setData (#652) (032a7a4)
- render component name in stub (#606) (dbf63bb)
BREAKING CHANGES
- removes templates from slots