From add54e1d26c3388b66e90540ec3ccca771e8a9b7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 1 Apr 2026 07:23:31 +0100 Subject: [PATCH] test: trim low-signal matrix monitor tests --- .../matrix/src/matrix/monitor/index.test.ts | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/extensions/matrix/src/matrix/monitor/index.test.ts b/extensions/matrix/src/matrix/monitor/index.test.ts index 7779b16a9d6..bdedec3f5d2 100644 --- a/extensions/matrix/src/matrix/monitor/index.test.ts +++ b/extensions/matrix/src/matrix/monitor/index.test.ts @@ -606,51 +606,4 @@ describe("matrix plugin registration", () => { resolveMatrixDefaultOrOnlyAccountId: "function", }); }, 240_000); - - it("loads the matrix src runtime api through Jiti without duplicate export errors", () => { - const runtimeApiPath = path.join( - process.cwd(), - "extensions", - "matrix", - "src", - "runtime-api.ts", - ); - expect( - loadRuntimeApiExportTypesViaJiti({ - modulePath: runtimeApiPath, - exportNames: [], - realPluginSdkSpecifiers: [ - "openclaw/plugin-sdk/account-helpers", - "openclaw/plugin-sdk/allow-from", - "openclaw/plugin-sdk/channel-config-helpers", - "openclaw/plugin-sdk/channel-policy", - "openclaw/plugin-sdk/core", - "openclaw/plugin-sdk/directory-runtime", - "openclaw/plugin-sdk/extension-shared", - "openclaw/plugin-sdk/irc", - "openclaw/plugin-sdk/signal", - "openclaw/plugin-sdk/status-helpers", - "openclaw/plugin-sdk/text-runtime", - ], - }), - ).toEqual({}); - }, 240_000); - - it("registers the channel without bootstrapping crypto runtime", async () => { - const runtime = {} as never; - const registerChannel = vi.fn(); - matrixPlugin.register({ - runtime, - logger: { - info: vi.fn(), - warn: vi.fn(), - error: vi.fn(), - debug: vi.fn(), - }, - registerChannel, - } as never); - - expect(hoisted.setMatrixRuntime).toHaveBeenCalledWith(runtime); - expect(registerChannel).toHaveBeenCalledWith({ plugin: expect.any(Object) }); - }); });