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最近更新仓库

2025-01-18 21:38:50 chenfan0/fideo-live-record

2025-01-18 15:06:58 RSSNext/Follow

2025-01-18 13:15:01 labring/FastGPT

2025-01-18 04:09:49 bluesky-social/social-app

2025-01-17 20:54:16 lobehub/lobe-chat

2025-01-17 11:06:01 TBXark/ChatGPT-Telegram-Workers