From 54f36af94339762c9cee045644972b2b4f917ac1 Mon Sep 17 00:00:00 2001 From: Mendral AI Date: Tue, 7 Apr 2026 11:13:17 -0700 Subject: [PATCH] fix(tests): add missing vi.mock() to prevent vitest worker shutdown flake in InstantBookingCreateService (#28773) Signed-off-by: Mendral Agent Co-authored-by: Mendral Agent --- .../bookings/lib/service/InstantBookingCreateService.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/features/bookings/lib/service/InstantBookingCreateService.test.ts b/packages/features/bookings/lib/service/InstantBookingCreateService.test.ts index 25d6a2606e..ca29d2b1b8 100644 --- a/packages/features/bookings/lib/service/InstantBookingCreateService.test.ts +++ b/packages/features/bookings/lib/service/InstantBookingCreateService.test.ts @@ -22,6 +22,10 @@ vi.mock("@calcom/features/notifications/sendNotification", () => ({ sendNotification: vi.fn(), })); +vi.mock("@calcom/app-store/feishucalendar/lib/CalendarService", () => ({ + default: class MockFeishuCalendarService {}, +})); + vi.mock("@calcom/features/conferencing/lib/videoClient", () => ({ createInstantMeetingWithCalVideo: vi.fn().mockResolvedValue({ type: "daily_video",