Files
cal.diy/packages/ui/__mocks__/ui.tsx
T
Udit Takkar d59fdf21fd feat: display country code from IP (#19788)
* feat: display country code from IP

* chore: remove

* fix: unit test
2025-03-06 19:16:41 +05:30

13 lines
363 B
TypeScript

import { vi } from "vitest";
vi.mock("@calcom/ui", async (originalImport) => {
const original = (await originalImport()) as Record<string, unknown>;
// Dynamic imports of Components are not supported in Vitest. So, we use the non-lazy version of the components
return {
...original,
AddressInput: original.AddressInputNonLazy,
};
});
export {};