unstale

npm / @vue/test-utils

@vue/test-utils

What changed in @vue/test-utils 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

2 breaking1 new APIs and options1 behavior and defaults6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

@vue/test-utils 210 changes

Breaking changes 2

  • Vue Test Utils no longer supports class components.

    2.5.0release notes

  • Legacy Mutation Event listener entries are dropped.

    2.4.11release notes

New APIs and options 1

Behavior and default changes 1

  • The vm returned by findComponent exposes defineExpose bindings.

    2.5.0release notes

Fixes and other changes 6

  • Fixes types for findComponent with generic SFCs.

    2.5.1release notes

  • Emitted event history for child components is cleared on unmount.

    2.5.0release notes

  • The root component continues re-rendering after another wrapper is mounted.

    2.5.0release notes

  • Corrects the behavior of the summary element.

    2.5.0release notes

  • keydown and keyup events set a spec-compliant event.code.

    2.4.11release notes

  • setData() is handled correctly for components using both setup() and data().

    2.4.11release notes