summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-08-15 10:27:33 -0700
committerGitHub <[email protected]>2025-08-15 17:27:33 +0000
commit1a2906a8ad6e9cf7a68441c956af91d189eff417 (patch)
tree599da5522cfa33c30793d57a73fd4ff93ab50daf /packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
parentab1c483cab659ac2ab081e74a0e3bd0fcc48a734 (diff)
Revert #6088 (#6328)
Diffstat (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.test.ts')
-rw-r--r--packages/cli/src/ui/hooks/shellCommandProcessor.test.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
index 49dd9c2a..d5270aba 100644
--- a/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
+++ b/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
@@ -104,6 +104,8 @@ describe('useShellCommandProcessor', () => {
): ShellExecutionResult => ({
rawOutput: Buffer.from(overrides.output || ''),
output: 'Success',
+ stdout: 'Success',
+ stderr: '',
exitCode: 0,
signal: null,
error: null,
@@ -221,6 +223,7 @@ describe('useShellCommandProcessor', () => {
act(() => {
mockShellOutputCallback({
type: 'data',
+ stream: 'stdout',
chunk: 'hello',
});
});
@@ -231,9 +234,12 @@ 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',
- chunk: 'hello world',
+ stream: 'stdout',
+ chunk: ' world',
});
});