The Wayback Machine - https://web.archive.org/web/20201212155239/https://github.com/vuejs/vue-test-utils/releases
Skip to content

@lmiller1990 lmiller1990 released this Nov 1, 2020 · 4 commits to dev since this release

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)
Assets 2

@lmiller1990 lmiller1990 released this Sep 10, 2020 · 23 commits to dev since this release

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

Assets 2

@lmiller1990 lmiller1990 released this Aug 29, 2020 · 33 commits to dev since this release

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.

Assets 2

@lmiller1990 lmiller1990 released this Aug 17, 2020 · 48 commits to dev since this release

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.

Assets 2

@lmiller1990 lmiller1990 released this May 17, 2020 · 89 commits to dev since this release

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)

Assets 2
May 6, 2020
May 6, 2020

@lmiller1990 lmiller1990 released this May 5, 2020 · 104 commits to dev since this release

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 πŸ––

Assets 2

@lmiller1990 lmiller1990 released this Apr 8, 2020 · 116 commits to dev since this release

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)
Assets 2
Pre-release
Pre-release

@lmiller1990 lmiller1990 released this Mar 9, 2020 · 134 commits to dev since this release

Bug Fixes

Assets 2
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.