Skip to content

Commit ef182b3

Browse files
test(mobile): give the Git permission test's React mock useEffectEvent
The hook now keys its selection refresh on an effect event, and main's permission test mocks React without it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 63d0d6e commit ef182b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/mobile/src/state/use-selected-thread-git-actions.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ vi.mock("react", () => ({
2626
useCallback: (callback: unknown) => callback,
2727
useMemo: (factory: () => unknown) => factory(),
2828
useEffect: () => {},
29+
useEffectEvent: (callback: unknown) => callback,
2930
}));
3031
vi.mock("./session", () => ({
3132
useEnvironmentScope: (environmentId: unknown, scope: string) =>

0 commit comments

Comments
 (0)