We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eb5715 commit 5014a2cCopy full SHA for 5014a2c
packages/core/src/tests/models.test.ts
@@ -1,6 +1,10 @@
1
import { getModel, getEndpoint } from '../models.ts';
2
import { ModelProviderName, ModelClass } from '../types.ts';
3
4
+jest.mock('../settings', () => ({
5
+ loadEnv: jest.fn(), // Mock the loadEnv function
6
+}));
7
+
8
describe('Model Provider Tests', () => {
9
test('should retrieve the correct model for OpenAI SMALL', () => {
10
const model = getModel(ModelProviderName.OPENAI, ModelClass.SMALL);
0 commit comments