mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import { beforeEach, beforeAll, describe, test, expect } from 'vitest';
|
|
|
|
describe('beforeEach cleanup timeout', () => {
|
|
beforeEach(() => () => new Promise(() => {}), 101)
|
|
test("ok", () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe('beforeAll cleanup timeout', () => {
|
|
beforeAll(() => () => new Promise(() => {}), 102)
|
|
test("ok", () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|