From 9bd6dd90dc5a2db895dc08b4e3d6c190ab7b74c4 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Sat, 9 May 2026 11:46:57 +0200 Subject: [PATCH] test: add missing fake agent controller --- app/server/modules/agents/__tests__/agents-manager.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/server/modules/agents/__tests__/agents-manager.test.ts b/app/server/modules/agents/__tests__/agents-manager.test.ts index eb7f9965..718d37aa 100644 --- a/app/server/modules/agents/__tests__/agents-manager.test.ts +++ b/app/server/modules/agents/__tests__/agents-manager.test.ts @@ -1,6 +1,7 @@ import { EventEmitter } from "node:events"; import { PassThrough } from "node:stream"; import { afterEach, beforeEach, expect, test, vi } from "vitest"; +import { fromAny } from "@total-typescript/shoehorn"; import type { ProcessWithAgentRuntime } from "../helpers/runtime-state.dev"; const spawnMock = vi.fn(); @@ -16,7 +17,7 @@ const processWithAgentRuntime = process as ProcessWithAgentRuntime; const setAgentRuntime = () => { processWithAgentRuntime.__zerobyteAgentRuntime = { - agentManager: null, + agentManager: fromAny({ waitForAgentReady: vi.fn(async () => true) }), localAgent: null, isStoppingLocalAgent: false, localAgentRestartTimeout: null,