fix(ui): mock networking's getProxyBaseUrl/getGlobalLitellmHeaderName in ModelsAndEndpointsView test

ModelsAndEndpointsView renders TeamInfo -> TeamMemberTab, which now imports
teamMemberBulkUpdate.ts. That module builds its API client from
getProxyBaseUrl/getGlobalLitellmHeaderName at import time, so the existing
@/components/networking mock (which predates the bulk-update route) needs
both exports or the render throws on collection.
This commit is contained in:
mubashir1osmani 2026-07-21 18:22:38 -07:00
parent 7fff840574
commit 1a80953ab8

View file

@ -33,6 +33,8 @@ vi.mock("@/components/networking", () => ({
getUiSettings: vi.fn().mockResolvedValue({ values: {} }),
latestHealthChecksCall: vi.fn().mockResolvedValue({ latest_health_checks: {} }),
getModelCostMapReloadStatus: vi.fn().mockResolvedValue({}),
getProxyBaseUrl: vi.fn(() => ""),
getGlobalLitellmHeaderName: vi.fn(() => "Authorization"),
}));
vi.mock("@/app/(dashboard)/models-and-endpoints/components/ModelAnalyticsTab/ModelAnalyticsTab", () => ({