test: trim low-signal matrix monitor tests

This commit is contained in:
Peter Steinberger 2026-04-01 07:23:31 +01:00
parent 25eaebb9b6
commit add54e1d26
No known key found for this signature in database
1 changed files with 0 additions and 47 deletions

View File

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