From f35fb7288a70358550fde481fbaf0f3359e1736d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 6 May 2026 04:58:26 +0100 Subject: [PATCH] test: mock manifest normalization in fallback tests --- src/agents/model-fallback.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/agents/model-fallback.test.ts b/src/agents/model-fallback.test.ts index d5b3b780358..81b8643b499 100644 --- a/src/agents/model-fallback.test.ts +++ b/src/agents/model-fallback.test.ts @@ -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" }, ]); });