Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(cli): orphans --help now reaches its own help engine-free

garrytan1aba87113ea9
diff --git a/test/cli-dispatch-lifecycle.serial.test.ts b/test/cli-dispatch-lifecycle.serial.test.ts
index 9ee9422951..24b481c1a7 100644
--- a/test/cli-dispatch-lifecycle.serial.test.ts
+++ b/test/cli-dispatch-lifecycle.serial.test.ts
@@ -170,7 +170,9 @@ describe('CLI dispatch lifecycle (connect / remote-route / drain / disconnect)',
test('--help never connects: self-help route and the generic stub', async () => {
writeConfig(LOCAL);
expect(await run(['sync', '--help'])).toEqual(['handler:sync', 'returned']);
- expect(await run(['orphans', '--help'])).toEqual(['returned']);
+ // D3: orphans' own help is now reached engine-free (selfHelp + SELF_HELP_WITHOUT_ENGINE).
+ expect(await run(['orphans', '--help'])).toEqual(['handler:orphans', 'returned']);
+ expect(await run(['files', '--help'])).toEqual(['returned']);
});
test('connect failure runs no handler and no teardown', async () => {