summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
diff options
context:
space:
mode:
authorOlcan <[email protected]>2025-05-21 13:16:50 -0700
committerGitHub <[email protected]>2025-05-21 13:16:50 -0700
commit00ab1905e0b252a70e2171b3f83d36adb7fec250 (patch)
tree21e3ccdb906bb411da7f78bd19882bc2d91edde2 /packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
parent01dbc61d1cad13901b83f0b3a75827f209119394 (diff)
use pending history item for shell mode, update as output is received (#471)
Diffstat (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.test.ts')
-rw-r--r--packages/cli/src/ui/hooks/shellCommandProcessor.test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
index 3645cc80..92bc98ea 100644
--- a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
+++ b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
@@ -15,6 +15,7 @@ import type { exec as ExecType } from 'child_process'; // For typing the injecte
// Mocks
const mockAddItemToHistory = vi.fn();
+const mockSetPendingHistoryItem = vi.fn();
const mockOnExec = vi.fn(async (promise) => await promise);
const mockOnDebugMessage = vi.fn();
const mockGetTargetDir = vi.fn();
@@ -94,6 +95,7 @@ describe('useShellCommandProcessor', () => {
renderHook(() =>
useShellCommandProcessor(
mockAddItemToHistory,
+ mockSetPendingHistoryItem,
mockOnExec,
mockOnDebugMessage,
mockConfig,