GitHub Hot Board

GitHub Hot Board · Hồ sơ kho lưu trữ

vitest-dev/vitest

Next generation testing framework powered by Vite. (Mô tả đến từ chính kho lưu trữ.)

TypeScript#test#testing-tools#vite

Dữ liệu tại October 27vitest-dev

Thứ hạng tốt nhất

#453

Mọi thời đại · TypeScript theo ngôn ngữ

17K

Tổng sao

2.1K

Tổng fork

0

Số ngày có mặt (30 ngày)

Giấy phép: MITPush gần nhất: October 27Issue mở (gồm PR): 380Thu thập từ 2026-10-25; chưa rõ = chưa thu thập được

Tài liệu dự án



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

Thứ hạng hiện tại

Diễn biến 30 ngày

Không có bản ghi nào trong 30 ngày qua.

Dự án tương tự · chủ đề chung

Gắn huy hiệu vào README của bạn · vitest-dev/vitest[![Gắn huy hiệu vào README của bạn](https://git.vaiox.xyz/api/badge/vitest-dev/vitest.svg)](https://git.vaiox.xyz/vi/repo/vitest-dev/vitest)

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

<a href="https://git.vaiox.xyz/vi/repo/vitest-dev/vitest"><img src="https://git.vaiox.xyz/api/badge/vitest-dev/vitest.svg" alt="Gắn huy hiệu vào README của bạn" height="20"></a>

← Về bảng xếp hạng

GitHub Hot BoardCỗ Máy Thời GianKhám phá联系我们 · Contact