Skip to content

test(cli): clear DO_NOT_TRACK in telemetry tests #2254 - #2255

Merged
nc9 merged 1 commit into
mainfrom
boat/telemetry-dnt-tests-2254
Nov 22, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/telemetry-dnt-tests-2254

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Telemetry tests deleted NO_TELEMETRY but not DO_NOT_TRACK, so ~29 tests failed in shells exporting DO_NOT_TRACK=1. Adds delete process.env.DO_NOT_TRACK beside every delete process.env.NO_TELEMETRY in telemetry.test, updater.test, install-source.test, path-setup.test, setup-telemetry.test and first-run-telemetry.test (env is already restored from originalEnv in afterEach). Tests that exercise the opt-out set it explicitly and are unchanged.

Closes #2254

Verification: DO_NOT_TRACK=1 bun run scripts/test-suites.ts --run cli: 4661 pass, 14 skip, 0 fail. format:check and lint ran in apps/cli. Test-only change: no changelog entry, no docs, no skill change.

@nc9
nc9 marked this pull request as ready for review November 22, 2026 13:16
@nc9
nc9 merged commit 5cb95fb into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/telemetry-dnt-tests-2254 branch November 22, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI telemetry tests fail when DO_NOT_TRACK=1 is set in the environment

1 participant