mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
test(models): update forward compat agent-scope mock
This commit is contained in:
@@ -247,9 +247,11 @@ function installModelsListCommandForwardCompatMocks() {
|
||||
}));
|
||||
|
||||
vi.doMock("../../agents/agent-scope.js", () => ({
|
||||
listAgentEntries: vi.fn(() => []),
|
||||
resolveAgentWorkspaceDir: vi.fn(() => "/tmp/openclaw-workspace"),
|
||||
resolveDefaultAgentDir: mocks.resolveDefaultAgentDir,
|
||||
resolveDefaultAgentId: vi.fn(() => "main"),
|
||||
resolveSessionAgentIds: vi.fn(() => ({ defaultAgentId: "main", sessionAgentId: "main" })),
|
||||
}));
|
||||
|
||||
vi.doMock("../../agents/model-catalog.js", () => ({
|
||||
|
||||
Reference in New Issue
Block a user