</>PackageGraphPackageGraph

vitest

npmv5.0.0TypeScript

Next generation testing framework powered by Vite

Adopt with care

vitest is usable, with caveats. Pulls in 22 transitive packages, about 4.2 MB installed.

  • AAdoption: grade A, Excellent.

    92.7M downloads per week and 129 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 6 days ago. 50 releases in the last 2 years.

  • CWeight: grade C, Fair — worth a look.

    Pulls in 22 transitive packages, about 4.2 MB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding vitest to a project.

13
Direct dependencies

Runtime packages this one declares itself.

22
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

4.2 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

Apache-2.0MIT

Every license you inherit by installing vitest, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node ^22.12.0 || ^24.0.0 || >=26.0.0
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

vitest vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
vitestthis page92.7M129MIT6 days ago
@vitest/coverage-istanbul04MIT13 hours ago
@vitest/coverage-v8052MIT13 hours ago
jest42.1M70MIT7 hours ago
jest-each33.7M1MIT14 hours ago
@vitest/pretty-format03MIT15 hours ago

Dependencies

Declared by vitest v5.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Used by

Popular packages that depend on vitest.

entitiesnpm

Encode & decode XML and HTML entities with ease & speed

204M/wk3 dependentsBSD-2-ClauseTS
content-typenpm

Create and parse HTTP Content-Type header

191.4M/wk6 dependentsMITTS
negotiatornpm

HTTP content negotiation

183.3M/wk2 dependentsMIT
raw-bodynpm

Get and validate the raw body of a readable stream.

128.5M/wk3 dependentsMITTS
cosmiconfignpm

Find and load configuration from a package.json property, rc file, TypeScript module, and more!

115.3M/wk3 dependentsMITTS
axiosnpm

Promise based HTTP client for the browser and node.js

106.5M/wk4 dependentsMITTS
std-envnpm

Runtime agnostic JS utils

97.9M/wk6 dependentsMITTS
dom-serializernpm

render domhandler DOM nodes to a string

94.3M/wk2 dependentsMITTS
expect-typenpm

[![CI](https://github.com/mmkal/expect-type/actions/workflows/ci.yml/badge.svg)](https://github.com/mmkal/expect-type/actions/workflows/ci.yml) ![npm](https://img.shields.io/npm/dt/expect-type) [![X Follow](https://img.shields.io/twitter/follow/mmkal)](ht

78.4M/wk8 dependentsApache-2.0TS
@testing-library/jest-domnpm

Custom jest matchers to test the state of the DOM

56M/wk6 dependentsMITTS
pgnpm

PostgreSQL client - pure javascript & libpq with the same API

46.3M/wk5 dependentsMIT
reselectnpm

Selectors for Redux.

44M/wk1 dependentsMITTS
cacnpm

Simple yet powerful framework for building command-line apps.

44M/wk9 dependentsMIT
ufonpm

URL utils for humans

43.6M/wk5 dependentsMITTS
h3npm

Minimal H(TTP) framework built for high performance and portability.

34.2M/wk8 dependentsMITTS
magicastnpm

Modify a JS/TS file and write back magically just like JSON!

33.9M/wk3 dependentsMITTS
reduxnpm

Predictable state container for JavaScript apps

30.2M/wk5 dependentsMITTS
@reduxjs/toolkitnpm

The official, opinionated, batteries-included toolset for efficient Redux development

26.4M/wk2 dependentsMITTS
mllynpm

Missing ECMAScript module utils for Node.js

25.1M/wk7 dependentsMITTS
cheerionpm

The fast, flexible & elegant library for parsing and manipulating HTML and XML.

24.1M/wk5 dependentsMITTS
ast-v8-to-istanbulnpm

AST-aware v8-to-istanbul

23.2M/wk1 dependentsMITTS
destrnpm

A faster, secure and convenient alternative for JSON.parse

20.3M/wk3 dependentsMITTS
drizzle-ormnpm

Drizzle ORM package for SQL databases

19M/wk0 dependentsApache-2.0TS
valibotnpm

The modular and type safe schema library for validating structural data

16.8M/wk5 dependentsMITTS

Relationship graph

Dependencies (left) and dependents (right) of vitest.

Frequently installed together

Release history

50 releases in the last two years, typically about 3 days apart.

Recent versions of vitest
VersionPublishedSizeLicense
5.0.0latest6 days ago2.6 MBMIT
5.0.0-rc.49 days ago2.6 MBMIT
5.0.0-rc.312 days ago2.6 MBMIT
4.1.1122 days ago1.8 MBMIT
5.0.0-rc.223 days ago2.6 MBMIT
5.0.0-rc.129 days ago2.6 MBMIT
5.0.0-beta.71 month ago2.5 MBMIT
5.0.0-beta.62 months ago2.2 MBMIT
4.1.102 months ago1.8 MBMIT
3.2.72 months ago1.3 MBMIT
5.0.0-beta.52 months ago2.2 MBMIT
4.1.92 months ago1.8 MBMIT
3.2.63 months ago1.3 MBMIT
5.0.0-beta.43 months ago2.0 MBMIT
3.2.53 months ago1.3 MBMIT

Overview

vitest is an npm package that next generation testing framework powered by Vite. It is extremely widely used, with about 92.7M downloads per week and 129 known dependents in the graph. The latest version is 5.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need next generation testing framework powered by Vite and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (92.7M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Trusted by 129 other packages.

Cons

  • Large dependency tree (58 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use vitest?

vitest is usable, with caveats. Pulls in 22 transitive packages, about 4.2 MB installed.

How do I install vitest?

Run `npm install vitest` to add vitest to your npm project.

How many dependencies does vitest have?

vitest declares 58 direct dependencies and pulls in 22 packages in total once its runtime tree is resolved totalling about 4.2 MB on disk.

What license is vitest released under?

vitest is distributed under the MIT license. Its dependency tree also includes: Apache-2.0, MIT.

How popular is vitest?

vitest has approximately 92,675,784 downloads per week and 129 known dependent packages.

Is vitest still maintained?

The most recent release of vitest (v5.0.0) was published 6 days ago.

Does vitest run install scripts?

No. vitest does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.