Bump @vue/test-utils from 2.5.1 to 2.6.0
DE
3h ago+8+8+0123456789-8-8-0123456789
Bumps @vue/test-utils from 2.5.1 to 2.6.0.
Release notes
Sourced from @vue/test-utils's releases.
v2.6.0
⚠️ Breaking change
Plain object and array props are no longer made deeply reactive. Tests relying on in-place mutations must wrap values in
reactive()before mounting, or pass a new value tosetProps. Passing the same mutated object tosetPropsdoes not trigger a re-render. Already-reactive props stay reactive. See #2951 and the migration guidance.What's Changed
- feat(types): infer emitted event names and payload types by
@niukanen1in vuejs/test-utils#2948- feat: add TeleportStub and support custom components as built-in stubs by
@simonyang08in vuejs/test-utils#2946- feat: add VueWrapper.emit by
@ValentinYoushkevichin vuejs/test-utils#2998- fix: keep the namespace prefix in attributes() by
@MaxFreedomPollardin vuejs/test-utils#2941- fix: store props in shallow reactive to avoid deep propagation by
@ackwellin vuejs/test-utils#2951- fix(types): infer emitted payloads for components with props by
@ValentinYoushkevichin vuejs/test-utils#2957- fix: skip global mocks mixin when mocks are empty by
@cexbrayatin vuejs/test-utils#2962- fix: record emitted events once when a devtools hook is installed by
@ValentinYoushkevichin vuejs/test-utils#2965- fix(types): accept union-typed props in mount by
@giaBaoJSin vuejs/test-utils#2967- fix: find elements and components inside multi-root functional components by
@ValentinYoushkevichin vuejs/test-utils#2971- fix(#2333): keep props from mixins and extends in stubs by
@ValentinYoushkevichin vuejs/test-utils#2963- fix: do not crash stubs on props without primitive conversion by
@ValentinYoushkevichin vuejs/test-utils#2975- fix: support attachTo on Vue versions before 3.5 by
@ValentinYoushkevichin vuejs/test-utils#2974- fix: apply global mocks named after internal instance fields by
@ValentinYoushkevichin vuejs/test-utils#2977- fix: clear events emitted during unmount from the emitted history by
@ondrhnin vuejs/test-utils#2985- fix: findComponent by selector on a functional root component by
@ValentinYoushkevichin vuejs/test-utils#2978- fix: keep Map and Set values in setData by
@mkantautasin vuejs/test-utils#2980- fix: stub directives registered with a camelCase or kebab-case name by
@MaxFreedomPollardin vuejs/test-utils#2982- fix: use Vite mode to select the built package for tests by
@cexbrayatin vuejs/test-utils#2995- fix: update the content of a teleport stubbed with a component by
@ValentinYoushkevichin vuejs/test-utils#2993- fix: do not crash findComponent if ref points to an svg element by
@NgoQuocViet2001in vuejs/test-utils#2983- fix(stubs): skip component name lookups on re-render by
@ondrhnin vuejs/test-utils#2987- fix(types): keep VueWrapper for findComponent with an any-typed selector by
@ondrhnin vuejs/test-utils#2973- fix(#2541): stub globally registered components by their registration key by
@ValentinYoushkevichin vuejs/test-utils#2996- fix: only apply stubs to the app being rendered by
@ValentinYoushkevichin vuejs/test-utils#2997- fix: infer resolved types for defaulted wrapper props by
@mvanhornin vuejs/test-utils#3003- fix: render slots passed to a stubbed teleport or keep-alive by
@ValentinYoushkevichin vuejs/test-utils#3013- fix(#2135): do not warn when mounting option slots are called outside render by
@ValentinYoushkevichin vuejs/test-utils#3014New Contributors
@MaxFreedomPollardmade their first contribution in vuejs/test-utils#2941@niukanen1made their first contribution in vuejs/test-utils#2948@ackwellmade their first contribution in vuejs/test-utils#2951@ValentinYoushkevichmade their first contribution in vuejs/test-utils#2957@Glandosmade their first contribution in vuejs/test-utils#2962@giaBaoJSmade their first contribution in vuejs/test-utils#2967@ondrhnmade their first contribution in vuejs/test-utils#2985@mkantautasmade their first contribution in vuejs/test-utils#2980@NgoQuocViet2001made their first contribution in vuejs/test-utils#2983@SuperDJmade their first contribution in vuejs/test-utils#3010Full Changelog: https://github.com/vuejs/test-utils/compare/v2.5.1...v2.6.0
Commits
9f2a994chore: release v2.6.0565c887docs(api): note that object props are not made reactive0eaab9ctest: include TSX tests in both Vitest projects5fa9d14test: remove obsolete hydration todo242104dtest: run built artifacts in Browser Mode088b067test: disable browser failure screenshotse4211catest: run mounting tests in Vitest Browser Mode5e449c8chore: group Playwright package and image updatesc5d8b19test: enable compat tests in Browser Mode67250e2ci: run browser tests in a standalone job- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)