perf: Remove packages/ui/index.ts barrel file (#20243)
* remove packages/ui/index.ts * Update tests
This commit is contained in:
1 parent
4762d475cb
commit
b0bf274896
14 files changed
+27
-198
No files matched your search
@@ -82,15 +82,9 @@ vi.mock("@calcom/web/lib/hooks/useRouterQuery", () => ({
|
||||
}),
|
||||
}));
|
||||
|
||||
vi.mock("@calcom/ui", async (importOriginal) => {
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const actual = await importOriginal<any>("@calcom/ui");
|
||||
return {
|
||||
...actual,
|
||||
Tooltip: vi.fn(({ children }) => <div data-testid="mock-tooltip">{children}</div>),
|
||||
};
|
||||
});
|
||||
vi.mock("@calcom/ui/components/tooltip", () => ({
|
||||
Tooltip: vi.fn(({ children }) => <div data-testid="mock-tooltip">{children}</div>),
|
||||
}));
|
||||
|
||||
vi.mock("@calcom/trpc/react", () => ({
|
||||
trpc: {
|
||||
|
||||
Reference in new issue
Block a user