mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-26 09:54:19 +01:00
fix: pre-landing review fixes
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
990ba7bee8
commit
1a8a62cb10
8 files changed
+42
-8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user