vue-test-utils

Component Test Utils for Vue 2

MIT License

Downloads
80.2K
Stars
3.6K
Committers
316

Bot releases are visible (Hide)

vue-test-utils - v1.3.6 Latest Release

Published by lmiller1990 over 1 year ago

What's Changed

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/v1.3.5...v1.3.6

vue-test-utils - v1.3.5

Published by lmiller1990 over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/v1.3.4...v1.3.5

vue-test-utils - v1.3.4

Published by lmiller1990 over 1 year ago

What's Changed

Install with npm install @vue/test-utils@legacy.

New Contributors

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/v1.3.3...v1.3.4

vue-test-utils - v1.3.3

Published by lmiller1990 almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/v1.3.2...v1.3.3

vue-test-utils - v1.3.2

Published by lmiller1990 almost 2 years ago

This bug fixes a regression introduced in https://github.com/vuejs/vue-test-utils/pull/1990, released as part of v1.3.1, that broke the CommonJS entry point.

What's Changed

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/1.3.1...v1.3.2

vue-test-utils - v1.3.1

Published by lmiller1990 almost 2 years ago

Features

Deps

Docs

New Contributors

Full Changelog: https://github.com/vuejs/vue-test-utils/compare/v1.3.0...1.3.1

vue-test-utils - v1.3.0

Published by lmiller1990 almost 3 years ago

1.3.0 is a small release, in terms of code changes, but brings back a popular feature that was previously deprecated: chaining for CSS selectors in getComponent and findComponent. This also is ported to Test Utils v2, so you can enjoy largely the same API in both libraries.

Features

feat: restore chaining and CSS selectors for findComponent (#1910)

Fixes

fix: verify object not null for typeof (#1897)
fix(types): Remove argument for resetAutoDestroyState (#1907)

vue-test-utils - v1.2.2

Published by lmiller1990 about 3 years ago

This release contains no bug fixes or behavior changes; it simply improves the type definitions.

Types

  • types: type createLocalVue method #1873
  • types: add generic for wrapper.find() and wrapper.get() #1871
vue-test-utils - v1.2.1

Published by lmiller1990 over 3 years ago

This is a small release with just two minor bug fixes.

Fixes

  • fix #1845: add functional component check in component name match (#1857)
  • updated router link stub to match actual router-link interface (#1840)
vue-test-utils - v1.2.0

Published by lmiller1990 over 3 years ago

Features

  • feat(stubs): render function props deterministically (#1834). Note: this may break some snapshots of shallow mounted functional components.

Fixes

  • fix: correctly find functional components (#1835)
  • fix: trigger keyboard event regression (#1826)
vue-test-utils - v1.1.4

Published by lmiller1990 over 3 years ago

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)
vue-test-utils -

Published by afontcu over 3 years ago

Fixes

  • do not console.error handled exceptions (#1761) @marcgibbons
vue-test-utils - v1.1.2

Published by lmiller1990 almost 4 years ago

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
vue-test-utils - v1.1.1

Published by lmiller1990 almost 4 years ago

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)
vue-test-utils - v1.1.0

Published by lmiller1990 about 4 years ago

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

vue-test-utils - v1.0.5

Published by lmiller1990 about 4 years ago

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.

vue-test-utils - v1.0.4

Published by lmiller1990 about 4 years ago

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.

vue-test-utils - v1.0.3

Published by lmiller1990 over 4 years ago

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)

vue-test-utils - v1.0.0

Published by lmiller1990 over 4 years ago

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 🖖

vue-test-utils - v1.0.0-beta.33

Published by lmiller1990 over 4 years ago

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)
Package Rankings
Top 0.95% on Npmjs.org
Top 18.4% on Repo1.maven.org
Top 6.71% on Proxy.golang.org
Badges
Extracted from project README
Build Status