Merge remote-tracking branch 'origin/next' into telemetry

This commit is contained in:
Ralph Khreish
2025-05-16 18:16:58 +02:00
40 changed files with 387 additions and 229 deletions

View File

@@ -32,6 +32,7 @@ const mockModelMap = {
]
// Add other providers/models if needed for specific tests
};
const mockGetBaseUrlForRole = jest.fn();
jest.unstable_mockModule('../../scripts/modules/config-manager.js', () => ({
getMainProvider: mockGetMainProvider,
@@ -43,7 +44,8 @@ jest.unstable_mockModule('../../scripts/modules/config-manager.js', () => ({
getParametersForRole: mockGetParametersForRole,
getUserId: mockGetUserId,
getDebugFlag: mockGetDebugFlag,
MODEL_MAP: mockModelMap
MODEL_MAP: mockModelMap,
getBaseUrlForRole: mockGetBaseUrlForRole
}));
// Mock AI Provider Modules