Next generation testing framework powered by Vite
Published Node.js and peer-dependency requirements.
| Requirement | From3.2.7 on npm (opens in a new tab) | To4.0.0 on npm (opens in a new tab) |
|---|---|---|
Node.js | ^18.0.0 || ^20.0.0 || >=22.0.0 | ^20.0.0 || ^22.0.0 || >=24.0.0 |
@types/node | ^18.0.0 || ^20.0.0 || >=22.0.0Optional peer · not required | ^20.0.0 || ^22.0.0 || >=24.0.0Optional peer · not required |
@vitest/browserNo longer declared | 3.2.7Optional peer · not required | Not declared |
@vitest/browser-playwrightNewly declared |
22 Oct 2025 · Newest first
Last checked
Checking sources…
Showing 1 of 1 releases. Full release notes.
Signals highlight changes worth reviewing. They cannot determine whether your application is affected.
4.0.0Optional peer · not required |
@vitest/browser-previewNewly declared | Not declared | 4.0.0Optional peer · not required |
|---|
@vitest/browser-webdriverioNewly declared | Not declared | 4.0.0Optional peer · not required |
|---|
@vitest/ui | 3.2.7Optional peer · not required | 4.0.0Optional peer · not required |
|---|
Update
enginesfield to drop Node 18 support - by @sheremet-va in #8608 (9a0bf)
Exclude deprecated context import from optimization - by @sheremet-va in #8658 (a96ea)
To stay updated, read our blog post and check the migration guide.
experimental_parseSpecifications - by @sheremet-va in #8408 (fdeb2)enableCoverage and disableCoverage methods - by @sheremet-va and @AriPerkkio in #8412 (61eb7)getGlobalTestNamePattern method - by @sheremet-va in #8438 (bdb70)relativeModuleId to TestModule - by @sheremet-va in #8505 (3be09)getSeed method - by @sheremet-va in #8592 (438c4)toBeInViewport utility method to assert element is in viewport or not - by @Shinyaigeek in #8234 (ceed5)vitest init cli command - by @thejackshelton in #8330 (1638b)toMatchScreenshot for Visual Regression Testing - by @macarie in #8041 (d45f9)trackUnhandledErrors option - by @sheremet-va in #8386 (c0ec0)length property to locators, toHaveLength now accepts locators - by @sheremet-va in #8512 (2308c)options on BrowserProviderOption - by @sheremet-va in #8609 (0d0e5)--inspect option in webdriverio - by @sheremet-va in #8613 (38adc)stacks property in Node.js context - by @sheremet-va in #8392 (b825e)$ and % formatting to test.for/each title - by @hi-ogawa in #8557 (ea6d7)"./*" with specific files in vitest package - by @hi-ogawa in #8560 (ce746)optimizeDeps.include for browser mode - by @jake-danton in #8570 (cdcf7)locator.element() returns HTMLElement or SVGElement - by @sheremet-va in #8440 (c1ac1)vite directly - by @sheremet-va in #8541 (d7fca)not.toBeInTheDocument() - by @sheremet-va in #8751 (f5d06)--project filter - by @gtbuchanan in #7885 (761be)vitest:coverage-transform plugin - by @AriPerkkio in #8477 (ff517)coverage.exclude - by @sheremet-va in #8731 (c9c30)