Tests: avoid bundled channel fallback in adapter test

Register a lightweight Telegram test plugin so the default-adapter assertion stays inside the in-memory registry instead of loading the real bundled channel runtime.
This commit is contained in:
Gustavo Madeira Santana
2026-04-17 12:32:33 -04:00
parent 7815d25eef
commit 06e3d53c8a

View File

@@ -36,6 +36,11 @@ describe("getChannelMessageAdapter", () => {
setActivePluginRegistry(
createTestRegistry([
{ pluginId: "discord", plugin: discordCrossContextPlugin, source: "test" },
{
pluginId: "telegram",
plugin: createChannelTestPluginBase({ id: "telegram" }),
source: "test",
},
]),
);
});