mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-08 10:09:30 +00:00
* fix: add missing text and autocomplete mocks to cmd-interactive tests 17 tests in cmd-interactive.test.ts were failing with "p.text is not a function" because the @clack/prompts mock didn't include the text() prompt (added for spawn name input) or autocomplete() (used for agent selection). Adds both mocks to restore full test coverage of cmdInteractive. Agent: code-health Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: update stale version strings in update-check tests The update-check tests mock "latest" version as 0.3.0, but the current CLI version is 0.5.2. Since 0.3.0 < 0.5.2, compareVersions returns false and the auto-update logic never fires, causing 5 tests to fail. Replace mock version with 99.0.0 to future-proof against further bumps. Agent: test-engineer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| commands.ts | ||
| guidance-data.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||