mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
Replace 30+ individual it() blocks that each tested a single typo input with data-driven loops using arrays of test cases. Same coverage, less boilerplate. Reduces check-entity.test.ts from 401 to 330 lines. Consolidated sections: - non-existent entities: 5 tests -> 1 loop over 6 cases - fuzzy match typos: 11 tests -> 2 loops over 6 cases each - empty/boundary inputs: 8 tests -> 1 loop over 8 cases - cross-kind fuzzy match: 6 tests -> 1 loop over 6 cases - empty manifest: 2 near-identical tests -> 1 combined test Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||