4.1.9Updated Jun 25, 2026

vitest

Next generation testing framework powered by Vite

No changelog notes found yet for 4.1.9. Showing the latest release with notes: 4.1.5.
4.1.52026-04-21T11:04:32Z
Release notes

🚀 Experimental Features

🐞 Bug Fixes



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

Compare versions

Pick two releases with changelog notes to review the changes.

Only releases with available changelog notes are listed here.

No changelog notes found yet for 4.1.9. Showing the latest release with notes: 4.1.5.

Select two versions to compare changes.