unstale

npm / vitest-browser-react

vitest-browser-react

What changed in vitest-browser-react 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

1 breaking5 new APIs and options1 behavior and defaults2 tooling4 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

vitest-browser-react 213 changes

Breaking changes 1

  • Adds support for async act v2, changing the supported act behavior.

    2.0.0release notes

New APIs and options 5

Behavior and default changes 1

  • A stable testid is attached to the default baseElement and container; snapshots using container may need Vitest 4.0.18 to avoid rendering the injected attribute.

    2.0.3release notes

Tooling 2

  • Adds support for vitest 5, allowing developers to use this package with that version.

    2.3.0release notes

  • Adds support for the new Vitest 4 syntax.

    2.0.0release notes

Fixes and other changes 4

  • Avoids act warnings when using vitest-browser-react.

    2.0.5release notes

  • Injects a consistent testid, making test identifiers more predictable.

    2.0.4release notes

  • Use a simple counter for act.

    2.0.3release notes

  • Unwanted tsconfig options were removed.

    2.0.2release notes