MyGit

vitest-dev/vitest

Fork: 1210 Star: 13320 (更新于 2024-12-21 00:05:23)

license: MIT

Language: TypeScript .

Next generation testing framework powered by Vite.

最后发布版本: v3.0.0-beta.2 ( 2024-12-10 18:22:19)

官方网址 GitHub网址

Vitest

Next generation testing framework powered by Vite.

Get involved!

Documentation | Getting Started | Examples | Why Vitest?

中文文档



Features

Vitest requires Vite >=v5.0.0 and Node >=v18.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

See Contributing Guide.

License

MIT License © 2021-Present Anthony Fu, Matias Capeletto

最近版本更新:(数据更新于 2024-12-21 00:04:39)

2024-12-10 18:22:19 v3.0.0-beta.2

2024-12-06 01:34:20 v3.0.0-beta.1

2024-12-02 22:46:59 v2.1.8

2024-12-02 17:49:44 v2.1.7

2024-11-26 20:24:34 v2.1.6

2024-11-18 22:18:45 v2.2.0-beta.2

2024-11-14 01:17:58 v2.2.0-beta.1

2024-11-13 23:24:47 v2.1.5

2024-10-28 20:27:59 v2.1.4

2024-10-14 19:06:11 v2.1.3

主题(topics):

test, testing-tools, vite

vitest-dev/vitest同语言 TypeScript最近更新仓库

2024-12-21 21:40:12 lobehub/lobe-chat

2024-12-21 12:01:51 siyuan-note/siyuan

2024-12-21 10:57:01 ai16z/eliza

2024-12-21 09:15:35 MetaCubeX/metacubexd

2024-12-20 19:36:48 vitejs/vite

2024-12-20 15:46:43 x-extends/vxe-table