mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 02:01:16 +00:00
Tests: keep model-selection exports
This commit is contained in:
@@ -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: () => [],
|
||||
|
||||
Reference in New Issue
Block a user