GitHub Hot Board

GitHub Hot Board · Arsip repositori

vitest-dev/vitest

Next generation testing framework powered by Vite. (Deskripsi berasal dari repositori itu sendiri.)

TypeScript#test#testing-tools#vite

Data per October 27vitest-dev

Peringkat terbaik

#453

Sepanjang masa · TypeScript per bahasa

17K

Total bintang

2.1K

Total fork

0

Hari di papan (30 hari)

Lisensi: MITPush terakhir: October 27Issue terbuka (termasuk PR): 380Dikumpulkan sejak 2026-10-25; tidak diketahui = belum terkumpul

Dokumentasi proyek



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

Peringkat saat ini

Grafik 30 hari

Tidak ada catatan dalam 30 hari terakhir.

Pasang lencana di README kamu · vitest-dev/vitest[![Pasang lencana di README kamu](https://git.vaiox.xyz/api/badge/vitest-dev/vitest.svg)](https://git.vaiox.xyz/id/repo/vitest-dev/vitest)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/id/repo/vitest-dev/vitest"><img src="https://git.vaiox.xyz/api/badge/vitest-dev/vitest.svg" alt="Pasang lencana di README kamu" height="20"></a>

← Kembali ke papan

GitHub Hot BoardMesin WaktuTemukan联系我们 · Contact