mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
11 lines
187 B
TypeScript
11 lines
187 B
TypeScript
import { test } from 'vitest';
|
|
|
|
test('fast', () => {
|
|
});
|
|
|
|
test('slow', async () => {
|
|
await sleep(300)
|
|
});
|
|
|
|
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms))
|