test(cli): cover auth, connection status, proxy startup, and replay shard formatting

Merged
TH
2mo ago
+575-0

Summary

Burns down the five coverage-based CRAP findings in #3420 with tests only — no production changes. Each finding is driven through its owning command's real entry point (CLI capture for auth/connection, the proxyCommand handler, and the format.ts display-name exports).

FunctionBeforeAfter
auth.ts:44 renderAuthStatus42 (0%)6 (100%)
auth.ts:7 authCommand30 (0%)5 (100%)
connection.ts:353 status render arrow42 (0%)6 (100%)
proxy.ts:32 startProxy30 (0%)5 (92.3%)
format.ts:139 replayTestShardDeviceName30 (0%)5 (100%)

New tests: cli/commands/__tests__/{auth,connection,proxy}.test.ts and replay-test/reporters/__tests__/format.test.ts (575 gross lines, test-only). Mutation-checked: removing the deviceId fallback fails the format test; hardcoding the proxy bind fails the flag test.

Closes #3420. Part of #3414.

Validation

Tested SHA: af9efc5b2. pnpm check:affected --run passes locally under the machine lock on this head. pnpm check:coverage-crap --all on the partial map over the four owned files: no function at or above 30 (was 5). check:quick and pnpm format clean; full CI (including Coverage and Integration Tests) green on the previous head f78c2a197, re-running on this one. No provider-facing code touched.