Skip to content

Releases: vuejs/vue-test-utils

v1.1.4

12 Apr 00:28
Compare
Choose a tag to compare

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

04 Feb 08:08
Compare
Choose a tag to compare

Fixes

v1.1.2

14 Dec 07:21
Compare
Choose a tag to compare

Fixes

  • feat: support array class binding in stubbed functional components (#1744) @palpich note: potential breaking change for some snapshots.
  • fix: does not pass data provided to mount to wrapper component (#1750) @xanf
  • fix: type getComponent() (#1741) @DevAnouar-FT

v1.1.1

01 Nov 00:36
Compare
Choose a tag to compare

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

10 Sep 04:11
Compare
Choose a tag to compare

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

29 Aug 10:30
Compare
Choose a tag to compare

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

17 Aug 12:45
Compare
Choose a tag to compare

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

  • upgrade from babel 6 to babel 7 (#1628)
  • migrate to jest for test runner (#1629)

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

17 May 11:43
Compare
Choose a tag to compare

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

05 May 13:49
Compare
Choose a tag to compare

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

08 Apr 10:01
Compare
Choose a tag to compare

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)

Features

  • support lazy modifier with setValue (#1467) (afd7a82)
  • support object class binding in stubbed functional components (#1476) (55f7eac)