Skip to content

Commit dc3e465

Browse files
la14-1spawn-qa-botclaude
authored
refactor: update test README with missing test file entries (#2458)
Add 6 undocumented test files to the test index README: - do-payment-warning.test.ts (Cloud-specific) - sprite-keep-alive.test.ts (Cloud-specific) - history-corruption.test.ts (Infrastructure) - paths.test.ts (Infrastructure) - fs-sandbox.test.ts (Infrastructure) - picker.test.ts (Parsing and type utilities) Also remove duplicate manifest-cache-lifecycle.test.ts entry that appeared in both Core manifest and Infrastructure sections. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b4e0f57 commit dc3e465

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/cli/src/__tests__/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,20 @@ bun test src/__tests__/manifest.test.ts
5151
- `prompt-file-security.test.ts``validatePromptFilePath`, `validatePromptFileStats`
5252

5353
### Infrastructure
54-
- `manifest-cache-lifecycle.test.ts` — Cache lifecycle: write, read, expiry, forced refresh
5554
- `history.test.ts` — History read/write
5655
- `history-trimming.test.ts` — History trimming at size limits
56+
- `history-corruption.test.ts` — History corruption recovery: malformed JSON, concurrent writes
5757
- `clear-history.test.ts``clearHistory`, `cmdListClear`
58+
- `paths.test.ts``getSpawnDir`, `getCacheDir`, `getHistoryPath`, `getSshDir`, path resolution
5859
- `ssh-keys.test.ts` — SSH key discovery, generation, fingerprinting
5960
- `update-check.test.ts` — Auto-update check logic
6061
- `with-retry-result.test.ts``withRetry`, `wrapSshCall`, Result constructors
6162
- `orchestrate.test.ts``runOrchestration`
63+
- `fs-sandbox.test.ts` — Guardrail: verifies test preload sandbox isolates filesystem writes
6264

6365
### Parsing and type utilities
6466
- `parse.test.ts``parseJsonWith`
67+
- `picker.test.ts``parsePickerInput`: tab-separated picker input parsing
6568
- `fuzzy-key-matching.test.ts``findClosestKeyByNameOrKey`, `levenshtein`, `findClosestMatch`, `resolveAgentKey`, `resolveCloudKey`
6669
- `unknown-flags.test.ts` — Unknown flag detection, `KNOWN_FLAGS`, `expandEqualsFlags`
6770
- `custom-flag.test.ts``--custom` flag for AWS, GCP, Hetzner, DigitalOcean
@@ -76,7 +79,9 @@ bun test src/__tests__/manifest.test.ts
7679
- `check-entity.test.ts` / `check-entity-messages.test.ts` — Entity validation
7780
- `agent-tarball.test.ts``tryTarballInstall`: GitHub Release tarball install, fallback, URL validation
7881
- `gateway-resilience.test.ts``startGateway` systemd unit with auto-restart and cron heartbeat
82+
- `do-payment-warning.test.ts``ensureDoToken` proactive payment method reminder for first-time DigitalOcean users
7983
- `do-snapshot.test.ts``findSpawnSnapshot`: DigitalOcean snapshot lookup, filtering, error handling
84+
- `sprite-keep-alive.test.ts``installSpriteKeepAlive` download/install, graceful failure, session script wrapping
8085
- `ui-utils.test.ts``validateServerName`, `validateRegionName`, `toKebabCase`, `sanitizeTermValue`, `jsonEscape`
8186

8287
### Agent-specific

0 commit comments

Comments
 (0)