Skip to content

Commit ffafa90

Browse files
committed
test(agents): avoid provider runtime in fallback tests
1 parent a24d5fe commit ffafa90

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/agents/model-fallback.probe.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ vi.mock("./auth-profiles/order.js", () => ({
2727
resolveAuthProfileOrder: vi.fn(),
2828
}));
2929

30+
vi.mock("./provider-model-normalization.runtime.js", () => ({
31+
normalizeProviderModelIdWithRuntime: () => undefined,
32+
}));
33+
3034
vi.mock("./auth-profiles/source-check.js", () => ({
3135
hasAnyAuthProfileStoreSource: vi.fn(() => true),
3236
}));

src/agents/model-fallback.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ vi.mock("../plugins/provider-runtime.js", () => ({
3232
resolveExternalAuthProfilesWithPlugins: () => [],
3333
}));
3434

35+
vi.mock("./provider-model-normalization.runtime.js", () => ({
36+
normalizeProviderModelIdWithRuntime: () => undefined,
37+
}));
38+
3539
const authSourceCheckMock = vi.hoisted(() => ({
3640
hasAnyAuthProfileStoreSource: vi.fn(() => false),
3741
}));

0 commit comments

Comments
 (0)