spawn/packages
B 03be92288a fix(tests): reset telemetry singleton in afterEach to prevent cross-test fetch leakage
The telemetry test calls initTelemetry() which sets _enabled=true in the
singleton module. Without resetting, logWarn/logError in subsequent test files
(e.g. hetzner-cov) trigger unexpected fetch() calls via captureWarning/captureError,
shifting mock callCount counters and causing test failures.

Add resetTelemetry() export and call it in telemetry test afterEach.

Agent: test-engineer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-22 03:20:05 +00:00
..
cli fix(tests): reset telemetry singleton in afterEach to prevent cross-test fetch leakage 2026-05-22 03:20:05 +00:00
shared fix: rethrow normalized Error in tryCatchIf/asyncTryCatchIf (#2930) 2026-03-23 19:33:05 -07:00