|
1 | | -import { Theme } from "@radix-ui/themes"; |
2 | 1 | import type { Task } from "@posthog/shared/domain-types"; |
| 2 | +import { Theme } from "@radix-ui/themes"; |
3 | 3 | import { render, screen } from "@testing-library/react"; |
4 | 4 | import type { ReactNode } from "react"; |
5 | 5 | import { describe, expect, it, vi } from "vitest"; |
@@ -45,22 +45,31 @@ vi.mock("@posthog/ui/features/code-review/hooks/useDiffStatsToggle", () => ({ |
45 | 45 | toggle: vi.fn(), |
46 | 46 | }), |
47 | 47 | })); |
48 | | -vi.mock("@posthog/ui/features/skill-buttons/components/SkillButtonsMenu", () => ({ |
49 | | - SkillButtonsMenu: () => null, |
50 | | -})); |
| 48 | +vi.mock( |
| 49 | + "@posthog/ui/features/skill-buttons/components/SkillButtonsMenu", |
| 50 | + () => ({ |
| 51 | + SkillButtonsMenu: () => null, |
| 52 | + }), |
| 53 | +); |
51 | 54 | vi.mock("@posthog/ui/features/autoresearch/AutoresearchHeaderButton", () => ({ |
52 | 55 | AutoresearchHeaderButton: () => null, |
53 | 56 | })); |
54 | | -vi.mock("@posthog/ui/features/git-interaction/components/BranchSelector", () => ({ |
55 | | - BranchSelector: () => null, |
56 | | -})); |
| 57 | +vi.mock( |
| 58 | + "@posthog/ui/features/git-interaction/components/BranchSelector", |
| 59 | + () => ({ |
| 60 | + BranchSelector: () => null, |
| 61 | + }), |
| 62 | +); |
57 | 63 | vi.mock( |
58 | 64 | "@posthog/ui/features/git-interaction/components/CloudGitInteractionHeader", |
59 | 65 | () => ({ CloudGitInteractionHeader: () => <div>cloud actions</div> }), |
60 | 66 | ); |
61 | | -vi.mock("@posthog/ui/features/git-interaction/components/TaskActionsMenu", () => ({ |
62 | | - TaskActionsMenu: () => <div>task menu</div>, |
63 | | -})); |
| 67 | +vi.mock( |
| 68 | + "@posthog/ui/features/git-interaction/components/TaskActionsMenu", |
| 69 | + () => ({ |
| 70 | + TaskActionsMenu: () => <div>task menu</div>, |
| 71 | + }), |
| 72 | +); |
64 | 73 | vi.mock("@posthog/ui/features/sessions/components/StopCloudRunButton", () => ({ |
65 | 74 | StopCloudRunButton: () => <div>stop cloud run</div>, |
66 | 75 | })); |
|
0 commit comments