mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
22 lines
384 B
TypeScript
22 lines
384 B
TypeScript
import { setTimeout } from 'node:timers/promises'
|
|
import { describe, test } from 'vitest'
|
|
|
|
const TIMEOUT = 100;
|
|
|
|
// Test queue time
|
|
await setTimeout(TIMEOUT);
|
|
|
|
describe("suite", () => {
|
|
test("one",async () => {
|
|
await setTimeout(TIMEOUT);
|
|
})
|
|
|
|
test("two", async () => {
|
|
await setTimeout(TIMEOUT);
|
|
})
|
|
|
|
test("three", async () => {
|
|
await setTimeout(TIMEOUT);
|
|
})
|
|
})
|