Repository navigation
bun test --parallel: do not let an import-only worker mark an executed function as uncovered - #39934
Merged
Merged
Claude / Claude Code Review
completed
Aug 21, 2026 in 14m 6s
Code review found 1 potential issue
Found 4 candidates, confirmed 1. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 0 |
| 🟡 Nit | 1 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | test/cli/test/coverage.test.ts:626-632 |
Test does not drain stdout pipe from spawned subprocess |
Annotations
Check warning on line 632 in test/cli/test/coverage.test.ts
claude / Claude Code Review
Test does not drain stdout pipe from spawned subprocess
`Bun.spawn` defaults `stdout` to `"pipe"`, but this test only drains `stderr` — either add `stdout: "ignore"` to the spawn options or include `proc.stdout.text()` in the `Promise.all`. `bun test` writes almost nothing to stdout so it won't deadlock here, but REVIEW.md's "drain pipes concurrently" rule and the CLAUDE.md test template call for draining every piped stream.
Loading