Skip to content

Commit 9bf2ddd

Browse files
committed
Fix tests for API keys in configuration
1 parent 934ab0e commit 9bf2ddd

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/cli/tests/settings/config.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ describe('Config', () => {
4949
profile: false,
5050
customPrompt: '',
5151
tokenCache: true,
52+
// API keys
53+
ANTHROPIC_API_KEY: '',
54+
OPENAI_API_KEY: '',
55+
XAI_API_KEY: '',
56+
MISTRAL_API_KEY: '',
5257
});
5358
expect(fs.existsSync).toHaveBeenCalledWith(mockConfigFile);
5459
});
@@ -86,6 +91,11 @@ describe('Config', () => {
8691
profile: false,
8792
customPrompt: '',
8893
tokenCache: true,
94+
// API keys
95+
ANTHROPIC_API_KEY: '',
96+
OPENAI_API_KEY: '',
97+
XAI_API_KEY: '',
98+
MISTRAL_API_KEY: '',
8999
});
90100
});
91101
});
@@ -117,4 +127,4 @@ describe('Config', () => {
117127
expect(result).toEqual({ githubMode: true, existingSetting: 'value' });
118128
});
119129
});
120-
});
130+
});

0 commit comments

Comments
 (0)