mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
docs(tests): document 5 undocumented test files in README (#2762)
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:
parent
47b8bd30cc
commit
4e31e8dd4c
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue