MCPcopy Create free account
hub / github.com/vitest-dev/vitest

github.com/vitest-dev/vitest

Chat with this repo
repository ↗ · DeepWiki ↗ · release v5.0.0-rc.4 ↗ · + Follow · compare 5 versions
5,754 symbols 20,194 edges 2,323 files ⚖ MIT 308 documented · 5% updated todayv5.0.0 · 2026-09-03★ 17,076331 open issues

Browse by type

Functions 4,532 Types & classes 1,222
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

  <img alt="Vitest logo" src="https://vitest.dev/vitest-dark.svg" height="60">

Vitest

Next generation testing framework powered by Vite.

current vitest version badge

Get involved!

Documentation | Getting Started | Examples | Why Vitest?

中文文档

Features

Vitest requires Vite >=v6.4.0 and Node >=v22.12.0

import { assert, describe, expect, it } from 'vitest'

describe('suite name', () => {
  it('foo', () => {
    expect(1 + 1).toEqual(2)
    expect(true).to.be.true
  })

  it('bar', () => {
    assert.equal(Math.sqrt(4), 2)
  })

  it('snapshot', () => {
    expect({ foo: 'bar' }).toMatchSnapshot()
  })
})
$ npx vitest

Sponsors

vitest's sponsors

Credits

Thanks to:

Contribution

See Contributing Guide.

License

MIT License © 2021-Present VoidZero Inc. and Vitest contributors

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 3,130
Method 1,402
Interface 657
Class 563
Enum 2

Languages

TypeScript100%

Modules by API surface

packages/vitest/src/node/core.ts78 symbols
packages/browser/context.d.ts67 symbols
packages/vitest/src/runtime/runner/types.ts59 symbols
packages/expect/src/jest-asymmetric-matchers.ts59 symbols
test/unit/test/jest-expect.test.ts58 symbols
packages/vitest/src/node/reporters/base.ts57 symbols
packages/vitest/src/node/reporters/reported-tasks.ts55 symbols
packages/vitest/src/integrations/vi.ts54 symbols
packages/browser-playwright/src/playwright.ts48 symbols
packages/browser/src/client/tester/context.ts47 symbols
packages/vitest/src/node/coverage.ts46 symbols
test/test-utils/index.ts44 symbols

Dependencies from manifests, versioned

@antfu/eslint-config9.3.0 · 1×
@antfu/install-pkg2.0.1 · 1×
@antfu/ni30.5.0 · 1×
@babel/corecatalog: · 1×
@babel/plugin-proposal-decoratorscatalog: · 1×
@bcoe/v8-coverage1.0.2 · 1×
@blazediff/core1.10.0 · 1×
@bomb.sh/tab0.0.22 · 1×
@edge-runtime/vm5.0.0 · 1×
@faker-js/faker10.6.0 · 1×
@iconify-json/carboncatalog: · 1×
@iconify-json/logoscatalog: · 1×

For agents

$ claude mcp add vitest \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page