Skip to content
プロジェクト

概要

Viteを基盤とする次世代テストフレームワーク。

開発ツール

この数値の測り方

できること

  • Vite's config, transformers, resolvers, and plugins. Use the same setup from your app!
  • Chai built-in for assertions, with Jest expect compatible APIs
  • Smart & instant watch mode, like HMR for tests!
  • Native code coverage via v8 or istanbul.

計測したスター増加

24時間
+24
7日間
+155
15日間
+245
1か月
+325

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。



Vitest logo


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

関連プロジェクトを探す

読み込み中…