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@vue/test-utils 210 changes
Breaking changes 2
Vue Test Utils no longer supports class components.
Legacy Mutation Event listener entries are dropped.
New APIs and options 1
The GlobalMountOptions type is exported.
Behavior and default changes 1
The
vmreturned byfindComponentexposesdefineExposebindings.
Fixes and other changes 6
Fixes types for findComponent with generic SFCs.
Emitted event history for child components is cleared on unmount.
The root component continues re-rendering after another wrapper is mounted.
Corrects the behavior of the
summaryelement.keydown and keyup events set a spec-compliant event.code.
setData() is handled correctly for components using both setup() and data().