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;