# What changed in @vue/test-utils

> 10 changes in @vue/test-utils 2 from its official release notes, upgrade guides and advisories: 2 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/@vue/test-utils/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @vue/test-utils 2

### Breaking changes

- Vue Test Utils no longer supports class components. (2.5.0) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.0)
- Legacy Mutation Event listener entries are dropped. (2.4.11) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.4.11)

### New APIs and options

- The GlobalMountOptions type is exported. (2.4.11) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.4.11)

### Behavior and default changes

- The `vm` returned by `findComponent` exposes `defineExpose` bindings. (2.5.0) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.0)

### Fixes and other changes

- Fixes types for findComponent with generic SFCs. (2.5.1) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.1)
- Emitted event history for child components is cleared on unmount. (2.5.0) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.0)
- The root component continues re-rendering after another wrapper is mounted. (2.5.0) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.0)
- Corrects the behavior of the `summary` element. (2.5.0) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.5.0)
- keydown and keyup events set a spec-compliant event.code. (2.4.11) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.4.11)
- setData() is handled correctly for components using both setup() and data(). (2.4.11) — [release notes](https://github.com/vuejs/test-utils/releases/tag/v2.4.11)
