Vitest
Blazing-fast unit test framework powered by Vite
A major version being built in the open, one breaking change at a time.
◆Recent moves
- 15d ago
Vitest 5.0.0-beta.7 splits config resolution from server creation
Separates config resolution from server creation, a structural change that makes the config layer independent of Vite server lifecycle. Adds a pluggable benchmark provider API, following the benchmark API rewrite two betas earlier, and promotes fsModuleCache to a top-level option.
View source ↗ - 1mo ago
Vitest 5.0.0-beta.6 clears mocks by default, drops webdriverio
Carries the beta series' most consequential default flip: mocks are cleared before each test automatically, which changes behavior for any suite relying on them persisting. Also drops webdriverio, adds Temporal mocking via updated fake-timers, and moves json and junit reporter output into .vitest by default.
View source ↗ - 1mo ago
Vitest 5.0.0-beta.5 ends ancestor config lookup, inlines runner
Stops config file lookup from walking ancestor directories and inlines @vitest/runner so it is no longer published as its own package — both consolidation moves that reduce the number of things users configure or install. Browser mode gains nested mark traces in the UI.
View source ↗ - 2mo ago
Vitest 5.0.0-beta.4 rewrites the benchmark API
Rewrites the benchmark public API, makes toHaveTextContent strict with toMatchTextContent as the loose alternative, and enables browser locators.exact by default. The strictness theme that defines this beta series is visible in all three.
View source ↗