Releases Index
Vitest

Vitest

vitest.devDeveloper Tools
$npx @buildinternet/releases get vitest
Recently Shipped16 releases · updated Nov 26, 2026

Vitest 5.1 shipped --last-failed and --since-last-run so reruns target only the tests that matter.

The rerun loop is now a first-class workflow. --last-failed runs only tests that failed on the previous run, and --since-last-run collects everything affected since then. --changed now prints how many tests were affected next to the total.

Time mocking accepts Temporal values. vi.setSystemTime() takes Temporal.Instant and Temporal.ZonedDateTime alongside dates and numbers.

Retries report each attempt on its own. A failure buried inside a repeats run surfaces in its own result instead of collapsing into the final status, and test.fails no longer triggers a retry when it fails as expected.

Debugging failures got better in the editor and the browser UI. Trace view opens from VS Code and highlights multiple selector matches, and a test.ui.theme option sets the UI theme. A **--changed** run reports affected tests next to the total.

Setup failures now report as global setup errors instead of a misleading "no test files" message, and Vitest warns when two projects attach the same file. On the cache side, new file system cache environment variables join the existing dependency cache option, and cache directories can be tagged with CACHEDIR.TAG so tooling recognizes them.

No breaking changes or deprecations landed in these releases. Patch releases fixed smaller things: Vite's default fs.deny stays intact when an API token file is present, data was added to the import.meta.hot stub, and skipIf ignores undefined options. Earlier, 5.0.0 replaced loupe.inspect with pretty-format and moved the default attachmentsDir from .vitest-attachements/ to .vitest/attachments/.

Seeded test randomness lands behind experimental flag; fake timers get tickMode

preThis release7 featuresNew capabilities1 enhancementImprovements to existing features2 fixesBug fixesAI-tallied from the release notes
vitest · v5.2.0-beta.1

An experimental seed option, context.random, vi.useFakeRandom and restoreRandom let tests use reproducible randomness, with seeds shown in reports and the UI and a --replay-seed flag to repeat them. Also added tickMode support in fake timers and AsyncLocalStorage-based tracking of the current task.

Read more ↗

Global setup errors surface; failed retries drop new snapshots

This release3 enhancementsImprovements to existing features10 fixesBug fixesAI-tallied from the release notes
vitest · v5.1.2

Global setup errors are now reported instead of appearing as "no test files", and new snapshots created during a failed retry are removed. The release also warns when projects attach the same file and reads external source maps once per run.

Read more ↗

File watching resumes after config restart; fs module cache gets env vars

This release1 featureNew capabilities3 enhancementsImprovements to existing features32 fixesBug fixesAI-tallied from the release notes
vitest · v5.1.1

Tests now rerun on file changes after a config restart, and the fs module cache can be tuned with new env variables. The release also fixes pool shutdown for disconnected and stuck orphaned workers, corrects --bail parsing, and allows spying on builtins.

Read more ↗

--last-failed and --since-last-run flags; browser port now 23315

This release15 featuresNew capabilities1 enhancementImprovements to existing features18 fixesBug fixesAI-tallied from the release notes
vitest · v5.1.0

New --last-failed flag runs only previously failed tests and --since-last-run limits runs to tests changed since the last execution, alongside fake timer support for node:timers and node:timers/promise and interactive failed-snapshot review. Fixed setup files not rerunning after --changed filtering and mock factories that form cycles later, and the browser mode default port changed to 23315.

Read more ↗

Browser Mode mocks 52% faster via import maps; --last-failed added

This release4 featuresNew capabilities6 enhancementsImprovements to existing featuresAI-tallied from the release notes
Blog · v5.1

Browser Mode now serves mocks through an import map instead of intercepting network requests, cutting mocked-suite runtime by 52% in Vitest's benchmark, and the new --last-failed flag reruns only the failures from the previous run. Typed array toEqual comparisons dropped from about 1.5s to 125ms, and the default Browser Mode port moved to 23315 because Windows can reserve the old 63315 port.

Read more ↗

fsModuleCache now on by default; trace viewer gets fit and zoom

This release6 featuresNew capabilities1 enhancementImprovements to existing features25 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.4

fsModuleCache is now enabled by default, and the trace viewer gains fit and zoom controls plus highlighting of multiple selector matches. Fixed coverage memory leaks, V8 browser leak between test files, module mock resolution in directories with spaces, and Map/Set deep equality in assertions.

Read more ↗

Browser mock paths checked; repeat-run status isolated

This release16 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.3

Fixed result.status leaking between repeats runs and mock path boundary checks in browser mode, where configs of browser-consumed environments are now kept and the server listen is delayed until tests start. Also revalidates imports of cached modules and scopes cache key generators to projects.

Read more ↗

vitest list exits 1 on collection failure; deepMerge prototype fixed

This release2 featuresNew capabilities1 enhancementImprovements to existing features16 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.1

vitest list now exits with code 1 when collection fails, parse error details are preserved in static collection, and deepMerge no longer mishandles prototypes. Also adds a focused trace view layout mode and a trace attempts selector in the UI header, plus a warning when the deprecated deps.optimizer.web is used.

Read more ↗

Trace view support; Vitest 5 name pattern fixes

This release1 featureNew capabilities2 fixesBug fixesAI-tallied from the release notes
vscode · v1.52.0

Adds a trace view for debugging and fixes compatibility with Vitest 5's testNamePattern. Also fixes an issue with the legacy AST collector ignoring computed member calls from esbuild's using helper.

Read more ↗

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.    🚨 Breaking Changes Replace loupe.inspect with pretty-format  -  by…

Read more ↗

Vitest 5.0 ships faster runs and Trace View

This release5 featuresNew capabilities3 enhancementsImprovements to existing featuresAI-tallied from the release notes
Blog · v5.0

Vitest 5.0 brings performance improvements and a new Trace View, along with nested projects and config inheritance. The major release also adds vi.when, a benchmarking rewrite, and richer locator errors that show the ARIA tree.

Read more ↗

vitest list now parses files statically

preThis release2 featuresNew capabilities1 enhancementImprovements to existing features5 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.0-rc.4

vitest list now parses files statically by default, replacing the previous behavior that relied on running the test files. Also promotes clearCache out of experimental, adds a link to open Playwright traces in the UI, and includes several bug fixes.

Read more ↗

parseSpecifications stable; UI trace improvements land

preThis release2 featuresNew capabilities4 enhancementsImprovements to existing features14 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.0-rc.3

parseSpecifications is no longer experimental. Coverage now uses @vitest/istanbuljs packages, and UI features include source-location highlighting and keyboard navigation for trace steps. Several bug fixes roll in across browser, coverage, snapshot, and worker handling.

Read more ↗

Global concurrency revived; mock redirects allowlisted

This release4 fixesBug fixesAI-tallied from the release notes
vitest · v4.1.11

Revived the global concurrency limit for test lifecycle in a backport to v4. Also backported fixes that encode iframeId in tester iframe URLs, trigger playwright/chromium gc on low disk availability, and restrict redirect mocks to the fs allowlist.

Read more ↗

Browser tests fail instead of hanging; GHA report title customizable

preThis release1 featureNew capabilities15 fixesBug fixesAI-tallied from the release notes
vitest · v5.0.0-rc.2

Browser tests now fail instead of hanging when the browser stops responding, and the GitHub Actions reporter supports a custom summary title and displays test names. Multiple fixes across browser, pool, and UI, including requiring auth for coverage report requests and preserving the root during config resolution.

Read more ↗