mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-14 16:50:37 +00:00
- commands-error-paths.test.ts: consolidate 4 groups of repetitive tests into data-driven loops: 7 identifier validation tests, 6 prompt validation tests, 5 cmdAgentInfo invalid-input tests, and 3 empty-input tests — each group had identical structure (rejects.toThrow + exit(1)) with only the input varying. net: 21 separate tests → 4 compact loops covering the same cases, reducing 41 lines of boilerplate. - commands-cloud-info.test.ts: consolidate 8 separate "should reject cloud with X" tests (invalid identifier describe block) into a single data-driven loop, reducing 24 lines. All 1413 tests still pass. biome lint clean. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||