mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 18:15:23 +00:00
fix(proxy): honor subcommand help flags
This commit is contained in:
1 parent
7cf555356a
commit
dfd070c9c6
2 files changed
+23
No files matched your search
@@ -45,6 +45,13 @@ afterEach(() => {
|
||||
});
|
||||
|
||||
describe('proxy command e2e', () => {
|
||||
it('shows help for subcommand help flags without executing the subcommand', () => {
|
||||
const help = runCli(['proxy', 'stop', '--help']);
|
||||
expect(help.status).toBe(0);
|
||||
expect(help.stdout).toContain('Usage: ccs proxy <start|stop|status|activate> [profile] [options]');
|
||||
expect(help.stdout).toContain('stop [profile] Stop the running proxy (or all proxies when omitted)');
|
||||
});
|
||||
|
||||
it('starts, reports status, activates, and stops via the built CLI', async () => {
|
||||
const port = await getPort();
|
||||
const ccsDir = path.join(tempDir, '.ccs');
|
||||
|
||||
Reference in new issue
Block a user