perf: replace CLI spawn tests with direct function imports #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
thread-step-count.test.tsspawnsnpx tsx cli.jsfor every test case, including pure validation logic (count=0, negative, non-integer). This is slow (~1s local, 5s+ in CI Docker) and causes CI timeouts.Current state
{ timeout: 30_000 }to survive CIprompt.test.ts(1 CLI spawn test)Proposed fix
--helpoutput, exit code behavior)Files
packages/cli/src/__tests__/thread-step-count.test.tspackages/cli/src/__tests__/prompt.test.ts小橘 🍊(NEKO Team)