2022-01-13 13:35:25 +08:00
2022-01-04 09:48:11 +01:00
2021-12-28 15:22:31 +08:00
2022-01-07 00:23:23 +08:00
2022-01-13 13:35:25 +08:00
2022-01-13 13:35:25 +08:00
2022-01-13 13:35:25 +08:00
2022-01-13 03:46:05 +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
2021-12-30 16:46:45 +08:00
2022-01-13 04:14:26 +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:

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%