Files
openclaw/extensions/mattermost/channel-plugin-api.test.ts
2026-04-12 04:24:42 +01:00

15 lines
684 B
TypeScript

import { describe, expect, it } from "vitest";
import { runDirectImportSmoke } from "../../test/helpers/plugins/direct-smoke.js";
describe("mattermost bundled api seam", () => {
it("loads the narrow channel plugin api in direct smoke", async () => {
const stdout = await runDirectImportSmoke(
'const mod = await import("./extensions/mattermost/channel-plugin-api.ts"); process.stdout.write(JSON.stringify({keys:Object.keys(mod).sort(), id: mod.mattermostPlugin.id, setupId: mod.mattermostSetupPlugin.id}));',
);
expect(stdout).toBe(
'{"keys":["mattermostPlugin","mattermostSetupPlugin"],"id":"mattermost","setupId":"mattermost"}',
);
}, 45_000);
});