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) }); - }); });