Skip to content

Scheduling infrastructure for absolutely everyone.

fix: mock @calcom/lib/i18n in EventManager.test.ts to prevent vitest worker shutdown flake (#28630)

Romit0f4717e0be7d
diff --git a/packages/features/bookings/lib/EventManager.test.ts b/packages/features/bookings/lib/EventManager.test.ts
index 516a5e7b478..1eff2eb1a2f 100644
--- a/packages/features/bookings/lib/EventManager.test.ts
+++ b/packages/features/bookings/lib/EventManager.test.ts
@@ -18,6 +18,11 @@ vi.mock("@calcom/features/watchlist/operations/check-if-users-are-blocked.contro
vi.mock("@calcom/features/watchlist/lib/telemetry", () => ({
sentrySpan: vi.fn(),
}));
+vi.mock("@calcom/lib/i18n", () => ({
+ locales: ["en"],
+ localeOptions: [{ value: "en", label: "English" }],
+ defaultLocaleOption: { value: "en", label: "English" },
+}));
import process from "node:process";
import { CredentialRepository } from "@calcom/features/credentials/repositories/CredentialRepository";