Files
Garry TanandClaude Fable 5 ee095f1ca2 test(progress): assert net-zero live-reporter leak, not process-global zero
The signal-handler test asserted __liveReporterCountForTest() === 0 — a
process-global absolute that any earlier test file in the same bun shard
can poison (a production path that skips finish() on an error branch
leaves one live entry behind). Shard-5 LPT packing started co-locating
such a file before progress.test.ts, failing this test deterministically
on CI across unrelated PRs while master stayed green by packing luck.

Snapshot the count before the 50 lifecycles and assert no NET leak —
the same prior-state tolerance the handler assertion already applies
via installedBefore. The test still catches its own regression class
(any leak from these lifecycles shows up as delta >= 1).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-22 11:22:40 -07:00
..