Skip to content

Commit cf270a0

Browse files
committed
test(cli): cover README cerebro.ask websocket command
1 parent e98c8b2 commit cf270a0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/cerebro-readme.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,12 @@ test('README cerebro.info commands work against websocket tRPC bridge', async ()
5454
});
5555

5656
expect(binInfo.stdout).toContain('README Cerebro Bridge');
57+
58+
const askViaRushx = await execFileAsync('rushx', ['cli', 'cerebro.ask', '--mod', 'math', '--messages', '2+2'], {
59+
cwd,
60+
env,
61+
});
62+
63+
expect(askViaRushx.stdout).toContain('"mod": "math"');
64+
expect(askViaRushx.stdout).toContain('"messages"');
5765
}, 180_000);

0 commit comments

Comments
 (0)