Skip to content

Commit f35fb72

Browse files
committed
test: mock manifest normalization in fallback tests
1 parent 68a82cb commit f35fb72

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/agents/model-fallback.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ vi.mock("../plugins/provider-runtime.js", () => ({
2727
resolveExternalAuthProfilesWithPlugins: () => [],
2828
}));
2929

30+
vi.mock("../plugins/manifest-model-id-normalization.js", () => ({
31+
normalizeProviderModelIdWithManifest: () => undefined,
32+
}));
33+
3034
const authSourceCheckMock = vi.hoisted(() => ({
3135
hasAnyAuthProfileStoreSource: vi.fn(() => false),
3236
}));
@@ -951,7 +955,7 @@ describe("runWithModelFallback", () => {
951955
}),
952956
).toEqual([
953957
{ provider: "anthropic", model: "claude-haiku-3-5" },
954-
{ provider: "openrouter", model: "openrouter/deepseek-chat" },
958+
{ provider: "openrouter", model: "deepseek-chat" },
955959
{ provider: "openai", model: "gpt-4.1-mini" },
956960
]);
957961
});

0 commit comments

Comments
 (0)