fix: pre-landing review fixes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-31 01:25:38 +00:00
1 parent 990ba7bee8
commit 1a8a62cb10
8 files changed
+42 -8

No files matched your search

+7
View File
@@ -61,6 +61,13 @@ describe('gstack-model-benchmark --dry-run', () => {
expect(r.stdout).not.toContain('gpt-42-fake');
});
test('a --models list with no valid provider is an error, never a claude run', () => {
const r = run(['--prompt', 'hi', '--models', 'Particle', '--dry-run']);
expect(r.status).toBe(1);
expect(r.stderr).toContain("No valid provider in --models 'Particle'");
expect(r.stdout).not.toContain('providers: claude');
});
test('empty --models list falls back to claude default', () => {
const r = run(['--prompt', 'hi', '--models', '', '--dry-run']);
expect(r.status).toBe(0);