Test code on a screen, representing the Vitest 3.0 release.

Vitest 3.0 added support for Vite 6, inline workspace configuration, a new reporter API, line-number test filtering, and matchers such as toBeOneOf and toHaveBeenCalledExactlyOnceWith.

What happened

Vitest 3.0 was released on January 16, 2025, according to the official GitHub release notes. Vitest is a fast unit-testing framework powered by Vite, and version 3.0 shipped with a few breaking changes that the maintainers expected to migrate smoothly.

Vite 6 and workspaces

The headline was support for Vite 6, keeping Vitest aligned with its underlying build tool. The release also allowed inline workspace configuration so projects no longer needed a separate workspace file, made extends: true correctly inherit all root config properties, and let the test context inject values from the config's provide option.

New reporter API and filtering

Vitest 3.0 introduced a new reporter API and added resolved project names to it, printing project names as labels. On the command line it added support for filtering tests by line number and for suites by location, and for excluding projects with a negated --project pattern. It also added a queued test state and an onTestsRerun method to the global setup context.

New matchers and browser mode

The release added several expect matchers, including toHaveBeenCalledExactlyOnceWith, toHaveBeenCalledBefore and toHaveBeenCalledAfter, toSatisfy and toBeOneOf, along with a describe.for helper. Browser mode gained clipboard-API support for userEvent copy, cut and paste, a locator.nth method, and multi-browser configuration.

Why it mattered

Vitest 3.0 kept one of the fastest-growing JavaScript testing frameworks current with Vite 6 while smoothing configuration through inline workspaces and expanding its matcher and reporter APIs. The line-number filtering and richer browser mode continued Vitest's push to be a complete, modern testing solution.

See also: Vitest 2.0 and the forks pool.

Sources

Published date reflects the original event date (2025-01-16). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.

Skillo Staff

Skillo Staff

All stories by: Skillo Staff

Leave a Reply