Skip to content

Commit 94cbc02

Browse files
ScottN-PVclaude
andcommitted
test(web): give the Git actions test a router for the Settings link
GitActionsControl now calls useNavigate for its Settings action, so the test that calls it directly needs the router hook mocked like its other hooks. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 69ac5dc commit 94cbc02

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/GitActionsControl.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ vi.mock("~/lib/sourceControlActions", () => ({
126126
vi.mock("~/lib/utils", () => ({ cn: () => "", randomUUID: () => "action" }));
127127
vi.mock("~/editorPreferences", () => ({ useOpenInPreferredEditor: () => () => {} }));
128128
vi.mock("~/browser/useOpenLink", () => ({ useOpenLink: () => () => {} }));
129+
vi.mock("@tanstack/react-router", () => ({ useNavigate: () => () => {} }));
129130
vi.mock("~/lib/openPullRequestLink", () => ({ useOpenPrLink: () => () => {} }));
130131
vi.mock("~/components/ui/toast", () => ({
131132
stackedThreadToast: (input: unknown) => input,

0 commit comments

Comments
 (0)