From 980091cbc2a809690dbd401c16ec3ac34da56083 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:40:12 -0700 Subject: feat(core): refactor shell execution to use node-pty (#6088) --- packages/cli/src/ui/hooks/shellCommandProcessor.test.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.test.ts') diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts index d5270aba..49dd9c2a 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts @@ -104,8 +104,6 @@ describe('useShellCommandProcessor', () => { ): ShellExecutionResult => ({ rawOutput: Buffer.from(overrides.output || ''), output: 'Success', - stdout: 'Success', - stderr: '', exitCode: 0, signal: null, error: null, @@ -223,7 +221,6 @@ describe('useShellCommandProcessor', () => { act(() => { mockShellOutputCallback({ type: 'data', - stream: 'stdout', chunk: 'hello', }); }); @@ -234,12 +231,9 @@ describe('useShellCommandProcessor', () => { // Advance time and send another event to trigger the throttled update await act(async () => { await vi.advanceTimersByTimeAsync(OUTPUT_UPDATE_INTERVAL_MS + 1); - }); - act(() => { mockShellOutputCallback({ type: 'data', - stream: 'stdout', - chunk: ' world', + chunk: 'hello world', }); }); -- cgit v1.2.3