Cover the moved isAlreadyRunning() check (non-TTY exit, quit, open, restart, new orchestrator) and the path-based dedup guard in addProjectToConfig(). Uses hoisted mocks for isAlreadyRunning, isHumanCaller, promptSelect, unregister, and waitForExit to ensure proper test isolation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| commands | ||
| lib | ||
| options | ||
| scripts | ||
| index.test.ts | ||
| program.test.ts | ||