mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 17:31:04 +00:00
Add 62 subprocess-based integration tests that exercise the actual index.ts entry point, catching issues that unit tests with mocked modules miss: - showVersion output format (version string, runtime, platform, arch) - Version/help flag aliases (--version, -v, -V, --help, -h) - Trailing help flags on subcommands (agents --help, matrix -h, etc.) - handleNoCommand error paths (--dry-run, --prompt without agent/cloud) - Unknown flag detection and error messaging - Flag value requirements (--prompt, -p, --prompt-file, -f) - --prompt and --prompt-file mutual exclusion - Verb alias routing (run, launch, start, deploy, exec) - Extra arguments warning - Prompt file error handling (nonexistent, directory) - Non-interactive terminal detection - Subcommand alias routing (m for matrix, ls/history for list) - List command -a/-c flag validation Agent: test-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| commands.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||