# Vitest 5: Prioritises Performance with a Shared Vite Server, Trace View, and Stricter Test Defaults

DevFeed: [Vitest 5: Prioritises Performance with a Shared Vite Server, Trace View, and Stricter Test Defaults](<https://devfeed.tech/articles/vitest-5-prioritises-performance-with-a-shared-vite-server-trace-view-and-stricter-test-defaults-114829.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/11/vite-5-release/>)

Author: Daniel Curtis

Published: 2026-11-03T16:47:00Z

Content type: release

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Vite](<https://devfeed.tech/topics/vite.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [assertions](<https://devfeed.tech/tags/assertions.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [browser](<https://devfeed.tech/tags/browser.md>), [ci](<https://devfeed.tech/tags/ci.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [command](<https://devfeed.tech/tags/command.md>), [development](<https://devfeed.tech/tags/development.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [fail](<https://devfeed.tech/tags/fail.md>), [faster](<https://devfeed.tech/tags/faster.md>), [jest](<https://devfeed.tech/tags/jest.md>), [news](<https://devfeed.tech/tags/news.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [requires](<https://devfeed.tech/tags/requires.md>), [server](<https://devfeed.tech/tags/server.md>), [speed](<https://devfeed.tech/tags/speed.md>), [test](<https://devfeed.tech/tags/test.md>), [trace](<https://devfeed.tech/tags/trace.md>), [vite](<https://devfeed.tech/tags/vite.md>), [vite-5-release](<https://devfeed.tech/tags/vite-5-release.md>), [vm](<https://devfeed.tech/tags/vm.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

Vitest 5 reports speed gains of roughly 8-25% in most benchmark setups and up to 53% with VM pools. The gains are attributed to inline projects sharing one Vite server, a stabilised on-disk fsModuleCache, fewer main-process/worker round trips, and reuse of compiled code in VM pools. New tools include `vitest doctor`, which checks alternative configurations for faster options, and Browser Mode Trace View, which records interactions and assertions as DOM snapshots for replay; `vi.when` supports argument-specific spy results. Defaults are stricter: `clearMocks` is enabled, unawaited async assertions fail, and non-top-level hoisted `vi.mock` calls throw. Vitest 5 requires Vite 6.4 and Node.js 22.12 or newer; Yarn users must install Vite themselves, and CI artifact paths may need updating for the consolidated `.vitest/` directory. Ecosystem compatibility may lag, including a reported Cloudflare worker pool peer-version conflict. The source excerpt also says Vitest compares favorably with Jest on performance but trails it in ecosystem size and React Native support.

## Source excerpt

Vitest 5.0 focuses on speed, with reported gains of 8 to 25 percent in most setups and up to 53 percent in VM pools. It adds a vitest doctor command, Browser Mode Trace View, and vi.when. Defaults are stricter: clearMocks is true and unawaited async assertions fail. It requires Vite 6.4 and Node.js 22.12 or newer. By Daniel Curtis