2022-03-22 08:28:30 +08:00
2022-02-23 22:31:50 +08:00
2022-03-22 08:28:30 +08:00
2022-03-21 19:23:16 +08:00
2022-03-14 06:42:24 +08:00
2022-02-22 13:17:20 +08:00
2021-12-12 09:02:05 +08:00
2022-03-21 19:23:16 +08:00
2022-01-04 01:33:51 +08:00

Vitest

A blazing fast unit test framework powered by Vite.

Get involved!



Vitest requires Vite >=v2.7.10 and Node >=v14

Follow the Getting Started Guide or learn why we are building a new test runner.

Documentation

Read the documentation.

Examples | Projects using Vitest

Features

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

Anthony Fu Sponsors

Patak Sponsors

Credits

Thanks to:

Contribution

See Contributing Guide.

License

MIT License © 2021-Present Anthony Fu, Matias Capeletto

Description
A Vite-native test framework. It's fast!
Readme MIT 149 MiB
Languages
TypeScript 94.4%
Vue 3.2%
JavaScript 2.2%
CSS 0.1%
HTML 0.1%