test: keep bundled channel entry smokes descriptor-only

This commit is contained in:
Peter Steinberger
2026-04-08 13:47:49 +01:00
parent 5dbf607f73
commit e1562fcdfa
4 changed files with 24 additions and 21 deletions

View File

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

View File

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

View File

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

View File

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