diff --git a/test/cli/fixtures/fails/hooks-timeout-before-hook-cleanup-callback.test.ts b/test/cli/fixtures/fails/hooks-timeout-before-hook-cleanup-callback.test.ts index ccbe5c6e8..df4598010 100644 --- a/test/cli/fixtures/fails/hooks-timeout-before-hook-cleanup-callback.test.ts +++ b/test/cli/fixtures/fails/hooks-timeout-before-hook-cleanup-callback.test.ts @@ -1,11 +1,15 @@ -import { beforeEach, beforeAll, describe, test } from 'vitest'; +import { beforeEach, beforeAll, describe, test, expect } from 'vitest'; describe('beforeEach cleanup timeout', () => { - beforeEach(() => new Promise(() => {}), 101) - test("ok", () => {}) + beforeEach(() => () => new Promise(() => {}), 101) + test("ok", () => { + expect(0).toBe(0) + }) }) describe('beforeAll cleanup timeout', () => { - beforeAll(() => new Promise(() => {}), 102) - test("ok", () => {}) + beforeAll(() => () => new Promise(() => {}), 102) + test("ok", () => { + expect(0).toBe(0) + }) })