MyGit

vitest-dev/vitest

Fork: 1159 Star: 12993 (更新于 2024-10-30 21:35:41)

license: MIT

Language: TypeScript .

Next generation testing framework powered by Vite.

最后发布版本: v2.1.0-beta.6 ( 2024-08-20 21:19:10)

官方网址 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-09-04 23:34:21)

2024-08-20 21:19:10 v2.1.0-beta.6

2024-08-12 19:48:47 v2.1.0-beta.5

2024-08-07 19:43:31 v2.1.0-beta.4

2024-08-07 16:17:43 v2.1.0-beta.3

2024-08-07 15:57:30 v2.1.0-beta.2

2024-08-07 14:22:06 v2.1.0-beta.1

2024-07-31 18:40:41 v2.0.5

2024-07-22 17:14:05 v2.0.4

2024-07-15 18:04:12 v2.0.3

2024-07-10 23:47:17 v2.0.2

主题(topics):

test, testing-tools, vite

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

2024-11-22 01:36:46 twentyhq/twenty

2024-11-21 16:58:07 labring/FastGPT

2024-11-21 16:14:54 RSSNext/Follow

2024-11-21 14:41:29 continuedev/continue

2024-11-21 00:40:00 immich-app/immich

2024-11-20 19:46:23 CopilotKit/CopilotKit