perf: Remove packages/ui/index.ts barrel file (#20243)

* remove packages/ui/index.ts

* Update tests
This commit is contained in:
Benny Joo authored and GitHub committed 2025-03-20 07:26:12 -03:00
1 parent 4762d475cb
commit b0bf274896
14 files changed
+27 -198

No files matched your search

@@ -1,5 +1,3 @@
import "@calcom/ui/__mocks__/ui";
import { TooltipProvider } from "@radix-ui/react-tooltip";
import { render, fireEvent, screen } from "@testing-library/react";
import * as React from "react";
@@ -20,6 +18,14 @@ vi.mock("@calcom/features/components/phone-input", () => {
};
});
vi.mock("@calcom/ui/components/address", async (originalImport) => {
const { AddressInputNonLazy } = (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 {
AddressInput: AddressInputNonLazy,
};
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type FormMethods = UseFormReturn<any>;