Tests: update pi SDK mocks

This commit is contained in:
Mario Zechner
2026-01-31 05:23:37 +01:00
parent 310eed825e
commit 9b1a6b30d9
3 changed files with 58 additions and 44 deletions

View File

@@ -1,8 +1,14 @@
import { describe, expect, it, vi } from "vitest";
vi.mock("@mariozechner/pi-coding-agent", () => ({
discoverAuthStorage: vi.fn(() => ({ mocked: true })),
discoverModels: vi.fn(() => ({ find: vi.fn(() => null) })),
AuthStorage: class {
mocked = true;
},
ModelRegistry: class {
find() {
return null;
}
},
}));
import type { OpenClawConfig } from "../../config/config.js";