From e1562fcdfa7fff1695e17a250d3e7e3df17ad249 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 8 Apr 2026 13:47:49 +0100 Subject: [PATCH] test: keep bundled channel entry smokes descriptor-only --- extensions/slack/index.test.ts | 13 +++++++------ extensions/telegram/index.test.ts | 6 +++--- extensions/whatsapp/index.test.ts | 13 +++++++------ extensions/zalo/index.test.ts | 13 +++++++------ 4 files changed, 24 insertions(+), 21 deletions(-) diff --git a/extensions/slack/index.test.ts b/extensions/slack/index.test.ts index d8b9bb28e72..dfd9d393973 100644 --- a/extensions/slack/index.test.ts +++ b/extensions/slack/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("slack bundled entries", () => { - it("loads the channel plugin without importing the broad api barrel", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("slack"); + it("declares the channel plugin without importing the broad api barrel", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("slack"); + expect(entry.name).toBe("Slack"); }); - it("loads the setup plugin without importing the broad api barrel", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("slack"); + it("declares the setup plugin without importing the broad api barrel", () => { + expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); + expect(typeof setupEntry.loadSetupPlugin).toBe("function"); }); }); diff --git a/extensions/telegram/index.test.ts b/extensions/telegram/index.test.ts index 463ba555936..b7811553c4b 100644 --- a/extensions/telegram/index.test.ts +++ b/extensions/telegram/index.test.ts @@ -12,8 +12,8 @@ describe("telegram bundled entries", () => { expect(entry.name).toBe("Telegram"); }); - it("loads the setup plugin without importing the broad api barrel", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("telegram"); + it("declares the setup plugin without importing the broad api barrel", () => { + expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); + expect(typeof setupEntry.loadSetupPlugin).toBe("function"); }); }); diff --git a/extensions/whatsapp/index.test.ts b/extensions/whatsapp/index.test.ts index 1f861347d6a..22fd4f4540d 100644 --- a/extensions/whatsapp/index.test.ts +++ b/extensions/whatsapp/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("whatsapp bundled entries", () => { - it("loads the channel plugin without importing the broad api barrel", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("whatsapp"); + it("declares the channel plugin without importing the broad api barrel", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("whatsapp"); + expect(entry.name).toBe("WhatsApp"); }); - it("loads the setup plugin without importing the broad api barrel", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("whatsapp"); + it("declares the setup plugin without importing the broad api barrel", () => { + expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); + expect(typeof setupEntry.loadSetupPlugin).toBe("function"); }); }); diff --git a/extensions/zalo/index.test.ts b/extensions/zalo/index.test.ts index 26ab9fcf529..65d2a709c30 100644 --- a/extensions/zalo/index.test.ts +++ b/extensions/zalo/index.test.ts @@ -3,13 +3,14 @@ import entry from "./index.js"; import setupEntry from "./setup-entry.js"; describe("zalo bundled entries", () => { - it("loads the channel plugin without a runtime-barrel cycle", () => { - const plugin = entry.loadChannelPlugin(); - expect(plugin.id).toBe("zalo"); + it("declares the channel plugin without a runtime-barrel cycle", () => { + expect(entry.kind).toBe("bundled-channel-entry"); + expect(entry.id).toBe("zalo"); + expect(entry.name).toBe("Zalo"); }); - it("loads the setup plugin without a runtime-barrel cycle", () => { - const plugin = setupEntry.loadSetupPlugin(); - expect(plugin.id).toBe("zalo"); + it("declares the setup plugin without a runtime-barrel cycle", () => { + expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); + expect(typeof setupEntry.loadSetupPlugin).toBe("function"); }); });