* Remove use of location from FormBuilder * Add tests * FormBuilderField and BookingFields tests * More tests * Remove always true if condition * Fix ui import mockig that got broken after the last merge
14 lines
407 B
TypeScript
14 lines
407 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,
|
|
PhoneInput: original.PhoneInputNonLazy,
|
|
AddressInput: original.AddressInputNonLazy,
|
|
};
|
|
});
|
|
|
|
export {};
|