Skip to content
forked from vitest-dev/vitest

Next generation testing framework powered by Vite.

License

Notifications You must be signed in to change notification settings

LomyCool/vitest

 
 

Repository files navigation

Vitest

Next generation testing framework powered by Vite.

Get involved!

Documentation | Getting Started | Examples | Why Vitest?

中文文档



Features

Vitest 1.0 requires Vite >=v5.0.0 and Node >=v18.00

import { assert, describe, expect, it } from 'vitest'

describe('suite name', () => {
  it('foo', () => {
    expect(1 + 1).toEqual(2)
    expect(true).to.be.