docs(tests): document 5 undocumented test files in README (#2762)
Some checks failed
CLI Release / Build and release CLI (push) Failing after 19s
Lint / Biome Lint (push) Failing after 3s
Lint / macOS Compatibility (push) Successful in 14s
Lint / ShellCheck (push) Successful in 58s

Added missing entries to packages/cli/src/__tests__/README.md for:
- auto-update.test.ts — setupAutoUpdate systemd service unit generation
- kill-with-timeout.test.ts — killWithTimeout SIGKILL grace period logic
- shell.test.ts — platform-aware shell detection utilities
- digitalocean-token.test.ts — DigitalOcean token storage and API helpers
- hetzner-pagination.test.ts — Hetzner API multi-page pagination

All 1467 tests pass. No code changes.

-- qa/code-quality

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
This commit is contained in:
A 2026-03-18 07:01:19 -07:00 committed by GitHub
parent 47b8bd30cc
commit 4e31e8dd4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,8 +63,11 @@ bun test src/__tests__/manifest.test.ts
- `paths.test.ts``getSpawnDir`, `getCacheDir`, `getHistoryPath`, `getSshDir`, path resolution
- `ssh-keys.test.ts` — SSH key discovery, generation, fingerprinting
- `update-check.test.ts` — Auto-update check logic
- `auto-update.test.ts``setupAutoUpdate`: systemd service unit generation and orchestration integration
- `kill-with-timeout.test.ts``killWithTimeout`: SIGKILL after grace period, already-exited process handling
- `with-retry-result.test.ts``withRetry`, `wrapSshCall`, Result constructors
- `orchestrate.test.ts``runOrchestration`
- `shell.test.ts``getLocalShell`, `isWindows`, `getInstallCmd`, `getWhichCommand`, `getInstallScriptUrl`: platform-aware shell detection
- `fs-sandbox.test.ts` — Guardrail: verifies test preload sandbox isolates filesystem writes
### Parsing and type utilities
@ -87,8 +90,10 @@ bun test src/__tests__/manifest.test.ts
- `check-entity.test.ts` / `check-entity-messages.test.ts` — Entity validation
- `agent-tarball.test.ts``tryTarballInstall`: GitHub Release tarball install, fallback, URL validation
- `gateway-resilience.test.ts``startGateway` systemd unit with auto-restart and cron heartbeat
- `digitalocean-token.test.ts` — DigitalOcean token storage, retrieval, and API client helpers
- `do-payment-warning.test.ts``ensureDoToken` proactive payment method reminder for first-time DigitalOcean users
- `do-snapshot.test.ts``findSpawnSnapshot`: DigitalOcean snapshot lookup, filtering, error handling
- `hetzner-pagination.test.ts` — Hetzner API pagination: multi-page server listing and cursor handling
- `sprite-keep-alive.test.ts``installSpriteKeepAlive` download/install, graceful failure, session script wrapping
- `ui-utils.test.ts``validateServerName`, `validateRegionName`, `toKebabCase`, `sanitizeTermValue`, `jsonEscape`
- `gcp-shellquote.test.ts``shellQuote` GCP-specific quoting edge cases