From 55c7776364efd660f111016d1f32947968c835e1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 17 Apr 2026 19:46:40 +0100 Subject: [PATCH] test: simplify acp and install test seams --- src/acp/control-plane/manager.test.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/acp/control-plane/manager.test.ts b/src/acp/control-plane/manager.test.ts index 192def6c4ca..612e73d489d 100644 --- a/src/acp/control-plane/manager.test.ts +++ b/src/acp/control-plane/manager.test.ts @@ -29,16 +29,10 @@ vi.mock("../runtime/session-meta.js", () => ({ upsertAcpSessionMeta: (params: unknown) => hoisted.upsertAcpSessionMetaMock(params), })); -vi.mock("../runtime/registry.js", async () => { - const actual = - await vi.importActual("../runtime/registry.js"); - return { - ...actual, - getAcpRuntimeBackend: (backendId?: string) => hoisted.getAcpRuntimeBackendMock(backendId), - requireAcpRuntimeBackend: (backendId?: string) => - hoisted.requireAcpRuntimeBackendMock(backendId), - }; -}); +vi.mock("../runtime/registry.js", () => ({ + getAcpRuntimeBackend: (backendId?: string) => hoisted.getAcpRuntimeBackendMock(backendId), + requireAcpRuntimeBackend: (backendId?: string) => hoisted.requireAcpRuntimeBackendMock(backendId), +})); let AcpSessionManager: typeof import("./manager.js").AcpSessionManager; let AcpRuntimeError: typeof import("../runtime/errors.js").AcpRuntimeError;