mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-14 00:09:01 +00:00
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> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| aws | ||
| commands | ||
| digitalocean | ||
| gcp | ||
| hetzner | ||
| local | ||
| shared | ||
| sprite | ||
| flags.ts | ||
| guidance-data.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| picker.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||