Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
215 B · 11 lines
TypeScript
123456789101112import { expect, test } from 'vitest'import { sleep } from './basic'
test('one plus one', async () => { await sleep(100) expect(1 + 1).toBe(2)})
test('one plus two', async () => { expect(1 + 2).toBe(3)})