Skip to content

Commit 54f36af

Browse files
mendral-agentMendral Agent
andauthored
fix(tests): add missing vi.mock() to prevent vitest worker shutdown flake in InstantBookingCreateService (calcom#28773)
Signed-off-by: Mendral Agent <support@mendral.com> Co-authored-by: Mendral Agent <support@mendral.com>
1 parent facc074 commit 54f36af

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/features/bookings/lib/service/InstantBookingCreateService.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ vi.mock("@calcom/features/notifications/sendNotification", () => ({
2222
sendNotification: vi.fn(),
2323
}));
2424

25+
vi.mock("@calcom/app-store/feishucalendar/lib/CalendarService", () => ({
26+
default: class MockFeishuCalendarService {},
27+
}));
28+
2529
vi.mock("@calcom/features/conferencing/lib/videoClient", () => ({
2630
createInstantMeetingWithCalVideo: vi.fn().mockResolvedValue({
2731
type: "daily_video",

0 commit comments

Comments
 (0)