





























@@ -1,14 +1,11 @@
11import { describe, expect, it } from "vitest";
2-import { runDirectImportSmoke } from "../../test/helpers/plugins/direct-smoke.js";
3243describe("mattermost bundled api seam", () => {
5-it("loads the narrow channel plugin api in direct smoke", async () => {
6-const stdout = await runDirectImportSmoke(
7-'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}));',
8-);
4+it("loads the narrow channel plugin api", async () => {
5+const mod = await import("./channel-plugin-api.js");
9610-expect(stdout).toBe(
11- '{"keys":["mattermostPlugin","mattermostSetupPlugin"],"id":"mattermost","setupId":"mattermost"}',
12-);
13-}, 45_000);
7+expect(Object.keys(mod).toSorted()).toEqual(["mattermostPlugin", "mattermostSetupPlugin"]);
8+expect(mod.mattermostPlugin.id).toBe("mattermost");
9+expect(mod.mattermostSetupPlugin.id).toBe("mattermost");
10+});
1411});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。