All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.1.3 (2021-02-04)
- error.js: do not console.error handled exceptions (#1761) (c4133d6), closes #1760
- prevent setProps infinite loop with immediate watchers (#1752) (db4ab8b)
1.0.5 (2020-08-29)
- extend Vue parent with options to support accessing root. with VCA (#1661) (f78f817)
- handle shallowMount on components with v-if and scoped slots (#1663) (41f2b2b)
1.0.4 (2020-08-17)
- setprops: allowed for setProps to be synced with nextTick intervals (#1618) (9a3e6f9), closes #1419
- allow using findComponent on a functional component (#1593) (2d6b497)
- fix iife build (#1555) (2858f24)
1.0.2 (2020-05-06)
Note: Version bump only for package vue-test-utils
1.0.0 (2020-05-05)
- 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)
- 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)
- support lazy modifier with setValue (#1467) (afd7a82)
- support object class binding in stubbed functional components (#1476) (55f7eac)
1.0.0-beta.32 (2020-03-09)
- stub globally registered components (#1441) (228cd1a), closes #1272
- types: emitted can return undefined (#1431) (b41a09d)
- improvement functional component features (#1427) (ebcf97c)
1.0.0-beta.31 (2020-01-18)
- 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
- 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)
- types: allow
false
as a component stub value (#1231) (2a4c6ef) - add $set scoped slot helper (#1287) (a9eea7b), closes #1253
- polyfill Element.matches for IE < 11 (#1230) (5e04331), closes #1223
- respect "hidden" attributes in isVisible() (#1257) (950763f)
- return promise from render and renderToString (#1164) (3c597d3)
- stub model option (#1166) (f81695b)
- typo. (#1312) (90b2af7)
- add correct render type (#1143) (8a9757c)
- 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)
- html output will now be formatted
- render and renderToString are now async
-
- Remove
sync
mode
- Remove
- Remove TransitionStub
- Remove Transition
1.0.0-beta.29 (2019-02-02)
- handle errors in destroy (#1106) (efab983)
- handle options applied by mixins (#1101) (d2f26e8)
- use Vue async option for sync mode (#1062) (4c65dbd)
- Remove polyfills from library
- hasStyle, hasAttribute, hasClass, hasProp, visible, and setComputed removed
1.0.0-beta.28 (2018-12-29)
- 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)
1.0.0-beta.27 (2018-12-09)
- fix references to documents in warnings (#1052) (45e2fe4)
- remove cached constructors (#1059) (aea1c94)
- stop stubs leaking with localVue (#1056) (5500553)
- stub dynamic components (#1051) (4338403)
1.0.0-beta.26 (2018-11-26)
- docs: replaced
unit script
withtest script
(#1001) (1576284) - 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)
- 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
- handle global stubs and functional extended components (#943) (0d1ddd1)
- improve emitted type (#933) (3049c3e)
- render all children (#931) (71a2e7b)
- throw error if unsupported options passed in vue < 2.3 (#910) (e8d9547)
- handle null in set data (#896) (44c4520)
- reconcile the overridden prototype of component with _Vue mixins (#889) (73980c4)
- render classes of functional component stubs (#898) (11cfee2)
- wrap extended child components (#840) (4faf5fb)
- remove incorrect test (#847) (e9374b8)
- add 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)
- add support for JSX scopedSlots value (#871) (13bcaeb)
- export createWrapper method to create wrapper from instance (#868) (ebca3b3)
- export wrapper class (#866) (c212ebf)
- render props on auto stubs (#834) (8db502d)
- broken links for deprecated methods (#786) (5bb6a0b)
- types: remove unnecessary method (#755) (2068208)
- allow extended components as stubs (#825) (65449b3)
- extend extended child components (#757) (bc5aba3)
- fix type of wrapper.vm (#759) (ff5220d)
- handle cloneDeep errors in createLocalVue (#844) (17dfdc8)
- handle textarea correctly in setValue() and setChecked() (#771) (4c9fe3c)
- handle unnamed parent and child components (#768) (71a2ac4)
- improve scopedSlots option (#808) (b946997)
- improve slots option (#813) (5fecbd2)
- 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)
- use for in to stub components on prototype (#845) (b6a3659)
- add parentComponent option (#846) (1951409)
- enabled slots option to take class components (#826) (4916fed)
- render slots by default (#782) (1ad731e)
- use setValue() on select element (#837) (2e6de7b)
- slots: functional component text slots (#733) (daa56aa)
- force update in setProps (#752) (7e23e09)
- stub child components (#723) (bc736fb)
- 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)
- add stubbed components to ignored elements (#714) (5072274)
- handle extended components correctly (#709) (55d831f)
- include default props in props object (#716) (5bcf574)
- support text slots (#711) (93b8d98)
- wrapper.setSelected() to work on select with optgroups (#715) (dae0b1c)
- add updated hook (#675) (9a2a25a), closes #661
- clone propsData to avoid mutation (#613) (a93275c)
- compile extended components (#637) (e1fb4a0)
- do not deep merge array data (#604) (934745b)
- docs link to wrapper (#601) (fbd8b92)
- make component construct correctly which class extends from Vue (#654) (3ecce2e)
- message for logModifiedComponents (#597) (dea5dba)
- types: add render() (#618) (f5d4a0f)
- method should be updated when triggering (3922ab7)
- remove includes and findIndex (#610) (a70a887)
- remove phantomjs limitation (#663) (e9f3305)
- remove throw from errorHandler (#655) (b4517ab)
- type definition of classes method (#685) (a864ed3)
- Update links to docs (#670) (2f162e6), closes #3
- use regex to test for circular references (#672) (6a40f8a)
- 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)
- support component slot string (#633) (8294453)
- removes templates from slots