test: mock manifest normalization in fallback tests

This commit is contained in:
Peter Steinberger
2026-05-06 04:58:26 +01:00
parent 68a82cb2e2
commit f35fb7288a

View File

@@ -27,6 +27,10 @@ vi.mock("../plugins/provider-runtime.js", () => ({
resolveExternalAuthProfilesWithPlugins: () => [],
}));
vi.mock("../plugins/manifest-model-id-normalization.js", () => ({
normalizeProviderModelIdWithManifest: () => undefined,
}));
const authSourceCheckMock = vi.hoisted(() => ({
hasAnyAuthProfileStoreSource: vi.fn(() => false),
}));
@@ -951,7 +955,7 @@ describe("runWithModelFallback", () => {
}),
).toEqual([
{ provider: "anthropic", model: "claude-haiku-3-5" },
{ provider: "openrouter", model: "openrouter/deepseek-chat" },
{ provider: "openrouter", model: "deepseek-chat" },
{ provider: "openai", model: "gpt-4.1-mini" },
]);
});