Skip to content
Projekte

Über uns

Testframework der nächsten Generation, betrieben von Vite.

Entwicklerwerkzeuge

So werden diese Zahlen gemessen

What you can do

  • Vite's config, transformers, resolvers, and plugins. Use the same setup from your app!
  • Chai built-in for assertions, with Jest expect compatible APIs
  • Smart & instant watch mode, like HMR for tests!
  • Native code coverage via v8 or istanbul.

Gemessener Sternzuwachs

in 24h
+24
in 7 days
+155
in 15 days
+245
in 1 month
+325

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original



Vitest logo


Vitest

Next generation testing framework powered by Vite.

current vitest version badge

Get involved!

Documentation | Getting Started | Examples | Why Vitest?

中文文档



Features

Vitest requires Vite >=v6.4.0 and Node >=v22.12.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

vitest's sponsors

Credits

Thanks to:

Contribution

See Contributing Guide.

License

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

Ähnliche Projekte entdecken

Wird geladen…