Skip to content

Commit 5014a2c

Browse files
committed
Mocking env file
1 parent 9eb5715 commit 5014a2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/tests/models.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { getModel, getEndpoint } from '../models.ts';
22
import { ModelProviderName, ModelClass } from '../types.ts';
33

4+
jest.mock('../settings', () => ({
5+
loadEnv: jest.fn(), // Mock the loadEnv function
6+
}));
7+
48
describe('Model Provider Tests', () => {
59
test('should retrieve the correct model for OpenAI SMALL', () => {
610
const model = getModel(ModelProviderName.OPENAI, ModelClass.SMALL);

0 commit comments

Comments
 (0)