vitest/test/cli/fixtures/fails/hooks-timeout-before-hook-cleanup-callback.test.ts
2025-03-11 14:40:31 +01:00

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)
})
})