Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Next generation testing framework powered by Vite.

License

NotificationsYou must be signed in to change notification settings

vitest-dev/vitest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Vitest

Next generation testing framework powered by Vite.

Get involved!

Documentation |Getting Started |Examples |Why Vitest?

中文文档



Features

Vitest requires Vite >=v6.0.0 and Node >=v20.0.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

Vladimir Sponsors

Anthony Fu Sponsors

Patak Sponsors

Credits

Thanks to:

Contribution

SeeContributing Guide.

License

MIT License © 2021-Present VoidZero Inc. and Vitest contributors


[8]ページ先頭

©2009-2025 Movatter.jp