Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md



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

关于 About

Next generation testing framework powered by Vite.
testtesting-toolsvite

语言 Languages

TypeScript95.4%
Vue2.7%
JavaScript1.7%
CSS0.1%
HTML0.1%
Imba0.0%
Less0.0%
SCSS0.0%
Sass0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1127
Total Commits
峰值: 45次/周
Less
More

核心贡献者 Contributors