From ae55201bf5f3af29fc9a027ebe86484829c49c63 Mon Sep 17 00:00:00 2001 From: braffolk Date: Wed, 22 Jan 2025 08:04:34 +0200 Subject: [PATCH] Update integration test warning for missing API key in Claude model tests --- src/__tests__/models/claude.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/models/claude.test.ts b/src/__tests__/models/claude.test.ts index 1d81637..cc93598 100644 --- a/src/__tests__/models/claude.test.ts +++ b/src/__tests__/models/claude.test.ts @@ -24,7 +24,7 @@ describe('AnthropicModel', () => { const MOCK_API_KEY = 'dummy-key'; const REAL_API_KEY = process.env.ANTHROPIC_API_KEY || ''; if (!REAL_API_KEY) { - throw new Error('API key is required for integration tests'); + console.warn('Skipping integration tests. Set ANTHROPIC_API_KEY to run integration tests'); } let model: AnthropicModel;