npm / vitest-browser-svelte
vitest-browser-svelte
What changed in vitest-browser-svelte 1 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.
5 breaking1 new APIs and options2 tooling4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvitest-browser-svelte 34 changes
Breaking changes 1
Rendering is now async-only, so developers must use render asynchronously.
Tooling 1
Adds support for Vitest 5, allowing developers to use this package with that version.
Fixes and other changes 2
All
pureexports are now re-exported.RenderResultis now exported for developers to use in types.
vitest-browser-svelte 25 changes
Breaking changes 3
Moves @playwright/test out of package dependencies, changing how it is installed alongside vitest-browser-svelte.
Injects data-testid for more stable locator queries. If using snapshots with container, update to Vitest 4.0.18 to avoid rendering the injected attribute.
Supports the new Vitest syntax, which may require changes to existing usage.
New APIs and options 1
Adds the wrapper option.
Tooling 1
Render is integrated with trace marks, making render activity traceable.
vitest-browser-svelte 13 changes
Breaking changes 1
DocumentFragment is no longer a supported debug argument.
Fixes and other changes 2
Peer dependencies are locked, affecting dependency resolution when installing the package.
The package supports Vitest 4, allowing developers to use it with that Vitest release.