2022-02-13 20:43:01 +01:00
2021-12-28 15:22:31 +08:00
2022-02-08 09:12:00 +08:00
2022-01-12 01:26:43 +08:00
2021-12-28 02:38:45 +08:00
2022-01-04 02:17:36 +08:00
2021-12-29 14:51:38 +08:00
2021-12-12 09:02:05 +08:00
2022-02-12 16:16:20 +08:00
2022-02-12 15:04:11 +08:00
2022-01-04 01:33:51 +08:00

Vitest

A blazing fast unit test framework powered by Vite.

Get involved!



⚠️ DISCLAIMER: Vitest is still in development and not stable yet. It's not recommended to use it in production.

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 { it, describe, expect, assert } 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%