Tests: keep model-selection exports

This commit is contained in:
Mariano Belinky
2026-04-08 17:45:59 +02:00
parent b02a5e5f0e
commit fa2c2bf4f7

View File

@@ -27,9 +27,15 @@ vi.mock("../../agents/model-fallback.js", () => ({
Array.isArray((err as { attempts?: unknown[] }).attempts),
}));
vi.mock("../../agents/model-selection.js", () => ({
isCliProvider: () => false,
}));
vi.mock("../../agents/model-selection.js", async () => {
const actual = await vi.importActual<typeof import("../../agents/model-selection.js")>(
"../../agents/model-selection.js",
);
return {
...actual,
isCliProvider: () => false,
};
});
vi.mock("../../agents/bootstrap-budget.js", () => ({
resolveBootstrapWarningSignaturesSeen: () => [],