From d25bcb1913e46013f8af304116bd1b8a487d3975 Mon Sep 17 00:00:00 2001 From: Eric Wheeler Date: Wed, 5 Mar 2025 19:30:56 -0800 Subject: [PATCH] test: suppress stderr output in TerminalProcessExec tests Redirect stderr to /dev/null when executing test commands to prevent 'command not found' messages from appearing in test output. This improves test output readability while maintaining the same test functionality. The test still verifies that nonexistent commands return exit code 127, but does so without printing potentially confusing error messages. Signed-off-by: Eric Wheeler --- .../terminal/__tests__/TerminalProcessExec.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integrations/terminal/__tests__/TerminalProcessExec.test.ts b/src/integrations/terminal/__tests__/TerminalProcessExec.test.ts index 287d5361de..9c4835946d 100644 --- a/src/integrations/terminal/__tests__/TerminalProcessExec.test.ts +++ b/src/integrations/terminal/__tests__/TerminalProcessExec.test.ts @@ -45,8 +45,8 @@ function createRealCommandStream(command: string): { stream: AsyncIterable/dev/null", { encoding: "utf8", maxBuffer: 100 * 1024 * 1024, // Increase buffer size to 100MB })