vitest 4.0.0
Next generation testing framework powered by Vite
vitest@4.0.0 was published on 2025-10-22. Its manifest declares 20 runtime dependencies and 9 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is ^20.0.0 || ^22.0.0 || >=24.0.0.
All vitest versions · Permanent reference to 4.0.0 · Latest release
Package specifications
| Version | 4.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2025-10-22T14:09:46.450Z |
| Node.js requirement | ^20.0.0 || ^22.0.0 || >=24.0.0 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 20 |
| Peer requirement count | 9 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 1377.52 KiB |
| Published file count | 108 |
| Package type | module |
| ES module entry | ./dist/index.js |
| Default entry | ./dist/index.js |
| Side effects declaration | false |
| Direct advisories | 2 |
| Resolved graph dependencies | Unknown |
| Repository stars | 17305 |
| Repository forks | 2111 |
Install vitest 4.0.0
npm install vitest@4.0.0 pnpm add vitest@4.0.0 yarn add vitest@4.0.0
Runtime dependencies
- vite ^6.0.0 || ^7.0.0
- debug ^4.4.3
- pathe ^2.0.3
- std-env ^3.9.0
- tinyexec ^0.3.2
- picomatch ^4.0.3
- tinybench ^2.9.0
- tinyglobby ^0.2.15
- @vitest/spy 4.0.0
- expect-type ^1.2.2
- tinyrainbow ^3.0.3
- magic-string ^0.30.19
- @vitest/utils 4.0.0
- @vitest/expect 4.0.0
- @vitest/mocker 4.0.0
- @vitest/runner 4.0.0
- es-module-lexer ^1.7.0
- @vitest/snapshot 4.0.0
- why-is-node-running ^2.3.0
- @vitest/pretty-format 4.0.0
Peer requirements
- jsdom * (optional peer)
- happy-dom * (optional peer)
- @vitest/ui 4.0.0 (optional peer)
- @types/node ^20.0.0 || ^22.0.0 || >=24.0.0 (optional peer)
- @types/debug ^4.1.12 (optional peer)
- @edge-runtime/vm * (optional peer)
- @vitest/browser-preview 4.0.0 (optional peer)
- @vitest/browser-playwright 4.0.0 (optional peer)
- @vitest/browser-webdriverio 4.0.0 (optional peer)
Optional dependencies
- None declared
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Known direct advisories
Evidence and freshness
- https://registry.npmjs.org/vitest/4.0.0 — retrieved 2026-11-01T06:51:43.517Z
- https://api.deps.dev/v3/projects/github.com%2Fvitest-dev%2Fvitest — retrieved 2026-11-01T03:15:42.166Z
- https://api.deps.dev/v3/systems/npm/packages/vitest/versions/4.0.0 — retrieved 2026-11-01T06:51:44.699Z