spawn/packages/cli/src
B f88fb14c3d fix(tests): prevent telemetry singleton from polluting parallel test fetch mocks
The telemetry module's `_enabled` flag persists across parallel test files
when `telemetry.test.ts` calls `initTelemetry()` (which deletes BUN_ENV/NODE_ENV
guards). This causes `logWarn` → `captureWarning` → `sendEvent` → `fetch()` to
fire unexpected calls through other tests' `global.fetch` mocks, breaking
callCount-based assertions in `hetzner-cov.test.ts` and `digitalocean-token.test.ts`.

Fix:
- Add runtime env guard in `sendEvent()` so telemetry never fires in test env
- Set `SPAWN_TELEMETRY=0` in test preload as defense-in-depth

Agent: code-health
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-07 00:18:50 +00:00
..
__tests__ fix(tests): prevent telemetry singleton from polluting parallel test fetch mocks 2026-05-07 00:18:50 +00:00
aws fix(telemetry): init telemetry in cloud bundle entry points (#3346) 2026-04-23 18:49:21 -07:00
commands fix(export): use '#' as sed delimiter so SECRET_REGEX '|' alternation parses (#3384) 2026-05-02 00:42:15 -07:00
daytona fix(telemetry): init telemetry in cloud bundle entry points (#3346) 2026-04-23 18:49:21 -07:00
digitalocean fix(telemetry): init telemetry in cloud bundle entry points (#3346) 2026-04-23 18:49:21 -07:00
gcp fix(telemetry): init telemetry in cloud bundle entry points (#3346) 2026-04-23 18:49:21 -07:00
hetzner fix(telemetry): init telemetry in cloud bundle entry points (#3346) 2026-04-23 18:49:21 -07:00
local fix(local): install OrbStack from DMG when Homebrew is missing (#3372) 2026-04-29 15:40:21 -07:00
shared fix(tests): prevent telemetry singleton from polluting parallel test fetch mocks 2026-05-07 00:18:50 +00:00
sprite fix(export): support sprite spawns (drop sprite-console exclusion) (#3382) 2026-05-02 00:13:47 -07:00
flags.ts feat(cli): --repo flag clones a template repo and applies spawn.md (#3360) 2026-04-24 23:42:23 -07:00
guidance-data.ts refactor: remove dead exports only used within their own files (#2431) 2026-03-10 08:51:15 -04:00
history.ts feat: recursive spawn (--beta recursive) (#2978) 2026-03-25 10:42:09 -07:00
index.ts feat(cli): spawn export — capture a claude session into a github repo (#3377) 2026-05-01 23:45:50 -07:00
manifest.ts fix: always fetch manifest from GitHub, 3s timeout for bad wifi (#3272) 2026-04-12 07:54:40 +07:00
picker.ts refactor: remove dead exported types from picker.ts and spawn-config.ts (#2553) 2026-03-12 21:43:05 -04:00
security.ts fix(test): check sensitive paths before lstat to fix macOS permission error (#3157) 2026-04-03 10:12:20 +07:00
unicode-detect.ts feat: Bun workspace monorepo — packages/cli + packages/shared (#1853) 2026-02-23 22:07:05 -08:00
update-check.ts fix(update): auto-install minor bumps, version 1.0.20 for patch delivery (#3342) 2026-04-22 14:07:41 -07:00