summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-08-14 13:40:12 -0700
committerGitHub <[email protected]>2025-08-14 20:40:12 +0000
commit980091cbc2a809690dbd401c16ec3ac34da56083 (patch)
tree5bdadbdbebcaf6471f753ef31ef3fdc6a7716ae3 /packages/cli/src/ui/hooks/shellCommandProcessor.test.ts
parent48af0456c1883834a83ae74281f0c871129779d8 (diff)
feat(core): refactor shell execution to use node-pty (#6088)
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, 1 insertions, 7 deletions
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',
});
});