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 🖖
This version was pushed to npm by lmiller1990, a new releaser for @vue/test-utils since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps @vue/test-utils from 1.0.0-beta.29 to 1.0.3.
Release notes
Sourced from @vue/test-utils's releases.
Changelog
Sourced from @vue/test-utils's changelog.
Commits
d981830
v1.0.38d9ff02
chore: 1.0.3c94c589
fix #1541: Improve deprecation messages (#1548)6e941b6
chore: update deprecation messages (#1534)a0ce566
chore(release): publish v1.0.2ce81da4
chore: commit dist files for 1.0.217d336e
chore: fix typos (#1533)6529d4d
v1.0.1ccab542
chore: add definitions for findComponent and findAllComponents (#1530)ae73ef4
chore: v1Maintainer changes
This version was pushed to npm by lmiller1990, a new releaser for @vue/test-utils since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually