spawn/packages/cli/src
A 76afe9546b
test: add missing assertions to no-op smoke tests (#2879)
19 tests across 7 files were calling functions with no expect() calls —
they verified "does not throw" implicitly but provided zero signal on
side effects or return values.

Added assertions to each:
- agent-setup-cov: expect runServer called after graceful failure
- auto-update: expect runServer called on non-fatal SSH error
- aws-cov: assert state.awsRegion set by promptRegion env var paths,
  spawnSync call counts for ensureAwsCli, fetch called for destroyServer
- do-cov: assert SPAWN_NAME_KEBAB preserved on early return,
  fetch NOT called when no token in checkAccountStatus
- gcp-cov: assert spy call counts for authenticate, destroyInstance,
  ensureGcloudCli; spawnSync NOT called when GCP_PROJECT env set;
  fetch NOT called when no project in checkBillingEnabled
- hetzner-cov: assert fetch called for ensureHcloudToken validation
  and for destroyServer REST calls
- ssh-cov: assert connectSpy and bunSpawnSpy called in waitForSsh

All 1925 tests pass. expect() calls increased from 4555 to 4575.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 04:12:18 +07:00
..
__tests__ test: add missing assertions to no-op smoke tests (#2879) 2026-03-23 04:12:18 +07:00
aws fix(security): shellQuote cmd in runServer() across all cloud providers (#2862) 2026-03-21 14:48:37 -07:00
commands fix(ux): add spawn link to help output and --fast to KNOWN_FLAGS (#2828) 2026-03-20 08:49:26 -07:00
digitalocean fix(security): shellQuote cmd in runServer() across all cloud providers (#2862) 2026-03-21 14:48:37 -07:00
gcp feat(gcp): default boot disk to 40 GB, configurable via GCP_DISK_SIZE (#2867) 2026-03-22 11:21:05 +07:00
hetzner fix(security): shellQuote cmd in runServer() across all cloud providers (#2862) 2026-03-21 14:48:37 -07:00
local fix: standardize ESM import extensions across 35 production files (#2827) 2026-03-20 08:51:40 -07:00
shared refactor: remove duplicate docker constants into shared orchestrate module (#2860) 2026-03-21 14:27:21 -07:00
sprite fix: prevent sprite idle shutdown during agent install (#2874) 2026-03-23 02:13:07 +07:00
flags.ts fix(ux): add spawn link to help output and --fast to KNOWN_FLAGS (#2828) 2026-03-20 08:49:26 -07:00
guidance-data.ts
history.ts fix: remove 100-entry history cap — keep all records (#2819) 2026-03-20 06:32:08 -07:00
index.ts fix: add --beta docker to help output and update description (#2857) 2026-03-21 06:20:35 -07:00
manifest.ts fix(cli): use tryCatch instead of tryCatchIf for JSON.parse callsites (#2770) 2026-03-18 12:54:41 -07:00
picker.ts refactor: remove dead exported types from picker.ts and spawn-config.ts (#2553) 2026-03-12 21:43:05 -04:00
security.ts fix(security): resolve symlinks in prompt file validation to prevent bypass (#2744) 2026-03-17 22:21:11 -07:00
unicode-detect.ts
update-check.ts fix: standardize ESM import extensions across 35 production files (#2827) 2026-03-20 08:51:40 -07:00