From 6c0917bcd1cc6a8fd3310fd40136e3311ca6bfca Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 7 Sep 2025 08:41:52 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- test/cli/run/filter-workspace.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cli/run/filter-workspace.test.ts b/test/cli/run/filter-workspace.test.ts index 1fe34bfac7..2482d721ec 100644 --- a/test/cli/run/filter-workspace.test.ts +++ b/test/cli/run/filter-workspace.test.ts @@ -543,11 +543,11 @@ describe("bun", () => { stdout: "pipe", stderr: "pipe", }); - + const td = new TextDecoder(); const reader = proc.stdout.getReader(); let output = ""; - + // Prove we get a chunk before the process exits (streaming) let firstChunk: Uint8Array | null = null; const first = await Promise.race([ @@ -563,16 +563,16 @@ describe("bun", () => { })(), ]); expect(first).toBe("chunk"); - + // Drain remaining output while (true) { const { value, done } = await reader.read(); if (done) break; output += td.decode(value); } - + const exitCode = await proc.exited; - + // In stream mode, output should not have package name prefixes expect(output).toMatch(/pkg1-line1/); expect(output).toMatch(/pkg1-line2/);