From 9bcb195e7c82a85e94e9de39530f185efad60ecd Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sat, 7 Mar 2026 16:01:22 +0700 Subject: [PATCH] test: cover llama.cpp help parity --- tests/unit/commands/help-command-parity.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/unit/commands/help-command-parity.test.ts b/tests/unit/commands/help-command-parity.test.ts index c65ee978..285e6585 100644 --- a/tests/unit/commands/help-command-parity.test.ts +++ b/tests/unit/commands/help-command-parity.test.ts @@ -27,4 +27,17 @@ describe('help command parity', () => { expect(rendered.includes('ccs cliproxy quota --provider ')).toBe(true); expect(rendered.includes('ccs llamacpp')).toBe(true); }); + + test('root help documents llama.cpp as a local API profile', async () => { + const lines: string[] = []; + console.log = (...args: unknown[]) => { + lines.push(args.map((arg) => String(arg)).join(' ')); + }; + + await handleHelpCommand(); + + const rendered = stripAnsi(lines.join('\n')); + expect(rendered.includes('ccs llamacpp')).toBe(true); + expect(rendered.includes('http://127.0.0.1:8080')).toBe(true); + }); });