mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-17 21:29:10 +00:00
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> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||