mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
Tests: inline mock classes in vi.mock factory
This commit is contained in:
@@ -47,8 +47,15 @@ vi.mock("../agents/model-auth.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("@mariozechner/pi-coding-agent", () => ({
|
||||
AuthStorage,
|
||||
ModelRegistry,
|
||||
AuthStorage: class {},
|
||||
ModelRegistry: class {
|
||||
getAll() {
|
||||
return modelRegistryState.models;
|
||||
}
|
||||
getAvailable() {
|
||||
return modelRegistryState.available;
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
function makeRuntime() {
|
||||
|
||||
Reference in New Issue
Block a user