InfoQ 中文T2·Tools
62 pts
Vitest, the Vite-native test framework maintained by VoidZero, released version 5.0 with speed prioritized over new features: a shared Vite server, a stable on-disk fsModuleCache and a VM pool with reusable compiled code lift performance by roughly 8-25% in most configurations and up to 53% for VM pools. It also adds a browser-mode Trace View and the vi.when conditional mocking API, while enforcing stricter defaults such as clearMocks enabled and un-awaited async assertions failing outright; upgrading requires Vite 6.4 and Node.js 22.12 or newer.