Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(flows): remove obsolete sidebar hook mock

Steven Enamakeld9eb53b56ac1
diff --git a/app/src/pages/__tests__/FlowCanvasPage.test.tsx b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
index 13590d3adf..4d0dc84cb4 100644
--- a/app/src/pages/__tests__/FlowCanvasPage.test.tsx
+++ b/app/src/pages/__tests__/FlowCanvasPage.test.tsx
@@ -77,12 +77,6 @@ vi.mock('../../components/flows/WorkflowCopilotPanel', () => ({
},
}));
-// The page auto-collapses the app sidebar via `useRootSidebar` (redux-backed);
-// this test renders without a Provider, so stub the hook to no-ops.
-vi.mock('../../components/layout/shell/RootShellLayout', () => ({
- useRootSidebar: () => ({ visible: true, toggle: () => {}, show: () => {}, hide: () => {} }),
-}));
-
function makeFlow(overrides: Partial<Flow> = {}): Flow {
return {
id: 'test-id',