spawn/packages
B e7861eb83d fix(tests): prevent telemetry module from leaking fetch calls across test files
The telemetry test enables telemetry globally by deleting BUN_ENV/NODE_ENV
and calling initTelemetry(). Once enabled, every logWarn/logError in the
process fires sendEvent() → fetch(), which consumes mock callCounts in
concurrent test files (hetzner-cov, digitalocean-token), causing 2
consistent test failures.

Add _testHelpers.enabled to telemetry.ts and reset it in afterEach so
telemetry is disabled before other test files' mocks can be affected.

Agent: test-engineer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-30 05:07:40 +00:00
..
cli fix(tests): prevent telemetry module from leaking fetch calls across test files 2026-04-30 05:07:40 +00:00
shared fix: rethrow normalized Error in tryCatchIf/asyncTryCatchIf (#2930) 2026-03-23 19:33:05 -07:00