mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 07:01:49 +00:00
fix(test): trim telegram command registry imports
This commit is contained in:
@@ -7,6 +7,7 @@ import type { OpenClawConfig } from "../../config/config.js";
|
||||
import { updateSessionStore, type SessionEntry } from "../../config/sessions.js";
|
||||
import { setActivePluginRegistry } from "../../plugins/runtime.js";
|
||||
import { loadBundledPluginPublicSurfaceSync } from "../../test-utils/bundled-plugin-public-surface.js";
|
||||
import { telegramCommandTestPlugin } from "../../../extensions/telegram/test-support.js";
|
||||
import { createTestRegistry } from "../../test-utils/channel-plugins.js";
|
||||
import { typedCases } from "../../test-utils/typed-cases.js";
|
||||
import { INTERNAL_MESSAGE_CHANNEL } from "../../utils/message-channel.js";
|
||||
@@ -24,12 +25,6 @@ const { slackPlugin } = loadBundledPluginPublicSurfaceSync<{
|
||||
pluginId: "slack",
|
||||
artifactBasename: "index.ts",
|
||||
});
|
||||
const { telegramPlugin } = loadBundledPluginPublicSurfaceSync<{
|
||||
telegramPlugin: ChannelPlugin;
|
||||
}>({
|
||||
pluginId: "telegram",
|
||||
artifactBasename: "index.ts",
|
||||
});
|
||||
const { whatsappPlugin } = loadBundledPluginPublicSurfaceSync<{
|
||||
whatsappPlugin: ChannelPlugin;
|
||||
}>({
|
||||
@@ -177,7 +172,7 @@ function setMinimalChannelPluginRegistryForTests(): void {
|
||||
},
|
||||
{
|
||||
pluginId: "telegram",
|
||||
plugin: telegramPlugin,
|
||||
plugin: telegramCommandTestPlugin,
|
||||
source: "test",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user