Next generation testing framework powered by Vite.
17,085
stars
5,722
commits
TypeScript
primary language
Sep 11, 2026
updated
Next generation testing framework powered by Vite.
Documentation | Getting Started | Examples | Why Vitest?
v8 or istanbul.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
Thanks to:
See Contributing Guide.
MIT License © 2021-Present VoidZero Inc. and Vitest contributors
(top 30 of 459)
TypeScript
95.6%
Vue
2.5%
JavaScript
1.7%
Next generation testing framework powered by Vite.
17,085
stars
5,722
commits
TypeScript
primary language
Sep 11, 2026
updated
Next generation testing framework powered by Vite.
Documentation | Getting Started | Examples | Why Vitest?
v8 or istanbul.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
Thanks to:
See Contributing Guide.
MIT License © 2021-Present VoidZero Inc. and Vitest contributors
(top 30 of 459)
TypeScript
95.6%
Vue
2.5%
JavaScript
1.7%