Tests: inline mock classes in vi.mock factory
This commit is contained in:
parent
a00e0bc189
commit
72ea3eedc9
1 changed files with 9 additions and 2 deletions
|
|
@ -47,8 +47,15 @@ vi.mock("../agents/model-auth.js", () => ({
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("@mariozechner/pi-coding-agent", () => ({
|
vi.mock("@mariozechner/pi-coding-agent", () => ({
|
||||||
AuthStorage,
|
AuthStorage: class {},
|
||||||
ModelRegistry,
|
ModelRegistry: class {
|
||||||
|
getAll() {
|
||||||
|
return modelRegistryState.models;
|
||||||
|
}
|
||||||
|
getAvailable() {
|
||||||
|
return modelRegistryState.available;
|
||||||
|
}
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
function makeRuntime() {
|
function makeRuntime() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue