Gathering detailed insights and metrics for vitest
Gathering detailed insights and metrics for vitest
Gathering detailed insights and metrics for vitest
Gathering detailed insights and metrics for vitest
npm install vitest
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
13,141 Stars
4,194 Commits
1,185 Forks
51 Watching
14 Branches
533 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (94.39%)
Vue (2.76%)
JavaScript (2.51%)
CSS (0.19%)
HTML (0.14%)
Imba (0.01%)
Cumulative downloads
Total Downloads
Last day
-10.5%
1,276,579
Compared to previous day
Last week
3.7%
7,485,006
Compared to previous week
Last month
11.1%
30,767,506
Compared to previous month
Last year
167%
247,481,487
Compared to previous year
20
6
31
Next generation testing framework powered by Vite.
Documentation | Getting Started | Examples | Why Vitest?
v8
or istanbul
.Vitest requires Vite >=v5.0.0 and Node >=v18.0.0
1import { assert, describe, expect, it } from 'vitest' 2 3describe('suite name', () => { 4 it('foo', () => { 5 expect(1 + 1).toEqual(2) 6 expect(true).to.be.true 7 }) 8 9 it('bar', () => { 10 assert.equal(Math.sqrt(4), 2) 11 }) 12 13 it('snapshot', () => { 14 expect({ foo: 'bar' }).toMatchSnapshot() 15 }) 16})
1$ npx vitest
Thanks to:
See Contributing Guide.
MIT License © 2021-Present Anthony Fu, Matias Capeletto
No vulnerabilities found.
No security vulnerabilities found.