Skip to content
المشاريع

حول

إطار اختبار من الجيل التالي مدعوم بـ Vite.

أدوات التطوير

كيف تُقاس هذه الأرقام

17,656 نجمة2,349 التفرعات +24 خلال 24 ساعة

ما يمكنك فعله

  • 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.

النمو المقاس للنجوم

خلال 24 ساعة
+٢٤
خلال 7 أيام
+١٥٥
خلال 15 يومًا
+٢٤٥
خلال شهر
+٣٢٥

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل



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

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…