# vitest-dev/vitest

Next generation testing framework powered by Vite.

Repository: https://github.com/vitest-dev/vitest
Canonical: https://ross.abutalabs.com/products/vitest
Homepage: https://vitest.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: vite, test, testing-tools
Last push: 2026-08-26T13:12:03+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 1734, "days_push": 7, "days_rel": 15, "gap_med": 6.0, "n_releases_24m": 65}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17013, forks 1933 (observed 2026-08-28T04:11:17.580006+00:00)

## What it is
Vitest is a next-generation JavaScript/TypeScript testing framework built on top of Vite, offering Jest-compatible APIs with fast watch mode, code coverage, mocking, and browser-based component testing. It reuses Vite's config, transformers, and plugins so tests share the same pipeline as the app, while also working standalone for backend code.

## Use cases
- run unit tests for a vite project
- migrate a test suite from jest
- test react or vue components in the browser
- get code coverage reports for typescript code
- watch mode that reruns only affected tests
- benchmark javascript functions
- test esm modules with typescript and jsx

## When to choose
- your app already uses vite and you want shared config and plugins
- you want a fast, jest-compatible runner with native ESM and TypeScript support
- you need component testing for Vue, React, Svelte, or Lit
- you want instant watch mode and built-in coverage without extra tooling

## When to avoid
- you are locked into an existing Jest ecosystem with plugins that have no Vitest equivalent
- you need end-to-end testing across real browsers and networks where Playwright or Cypress fit better
- your toolchain is entirely outside the Node.js/JavaScript ecosystem

## Facets
- artifact type: framework
- maturity: stable
- function: testing, e2e-testing, benchmarking, mocking
- domain: testing, web-development, frontend, developer-tools
- platform: browser, cross-platform, cli
- tags: vite, jest-compatible, unit-testing, component-testing, code-coverage, esm, typescript, watch-mode, snapshot-testing, nodejs

## Member repositories
- vitest-dev/vitest (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.580006+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:03:40.371092+00:00, confidence not recorded.
  - readme: https://github.com/vitest-dev/vitest (fetched 2026-08-28T04:11:17.580006+00:00, sha 482b35be5765)
  - homepage: https://vitest.dev (fetched 2026-08-29T08:02:07.194194+00:00, sha 5b77634690c3)
  - site_page: https://vitest.dev/guide/features (fetched 2026-08-29T08:02:07.196875+00:00, sha 0151f08effef)
  - site_page: https://v3.vitest.dev/ (fetched 2026-08-29T08:02:07.201275+00:00, sha 7bfa5ebdfbef)
  - site_page: https://v2.vitest.dev/ (fetched 2026-08-29T08:02:07.203182+00:00, sha 88ea45cae419)
  - site_page: https://v1.vitest.dev/ (fetched 2026-08-29T08:02:07.204919+00:00, sha 5af575de7220)
  - site_page: https://v0.vitest.dev/ (fetched 2026-08-29T08:02:07.206611+00:00, sha 16d836443f99)
  - site_page: https://main.vitest.dev/ (fetched 2026-08-29T08:02:07.199274+00:00, sha 5b77634690c3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
