test(agents): avoid provider runtime in fallback tests

This commit is contained in:
Peter Steinberger
2026-05-06 10:21:34 +01:00
parent a24d5fe790
commit ffafa9008d
2 changed files with 8 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ vi.mock("./auth-profiles/order.js", () => ({
resolveAuthProfileOrder: vi.fn(),
}));
vi.mock("./provider-model-normalization.runtime.js", () => ({
normalizeProviderModelIdWithRuntime: () => undefined,
}));
vi.mock("./auth-profiles/source-check.js", () => ({
hasAnyAuthProfileStoreSource: vi.fn(() => true),
}));

View File

@@ -32,6 +32,10 @@ vi.mock("../plugins/provider-runtime.js", () => ({
resolveExternalAuthProfilesWithPlugins: () => [],
}));
vi.mock("./provider-model-normalization.runtime.js", () => ({
normalizeProviderModelIdWithRuntime: () => undefined,
}));
const authSourceCheckMock = vi.hoisted(() => ({
hasAnyAuthProfileStoreSource: vi.fn(() => false),
}));