diff --git a/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts b/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts index 839d9442c36..71ee6577a27 100644 --- a/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts +++ b/extensions/telegram/src/bot-native-commands.skills-allowlist.test.ts @@ -2,7 +2,6 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; -import { writeSkill } from "openclaw/plugin-sdk/testing"; import { afterEach, describe, expect, it, vi } from "vitest"; import { registerTelegramNativeCommands } from "./bot-native-commands.js"; import { @@ -12,6 +11,7 @@ import { waitForRegisteredCommands, } from "./bot-native-commands.menu-test-support.js"; import { pluginCommandMocks, resetPluginCommandMocks } from "./test-support/plugin-command.js"; +import { writeSkill } from "./test-support/write-skill.js"; const tempDirs: string[] = []; diff --git a/extensions/telegram/src/bot.test.ts b/extensions/telegram/src/bot.test.ts index c426dcd1e87..caecafff36f 100644 --- a/extensions/telegram/src/bot.test.ts +++ b/extensions/telegram/src/bot.test.ts @@ -4,9 +4,9 @@ import { clearPluginInteractiveHandlers, registerPluginInteractiveHandler, } from "openclaw/plugin-sdk/plugin-runtime"; -import { expectChannelInboundContextContract as expectInboundContextContract } from "openclaw/plugin-sdk/testing"; import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import { escapeRegExp, formatEnvelopeTimestamp } from "../../../test/helpers/envelope-timestamp.js"; +import { expectChannelInboundContextContract as expectInboundContextContract } from "./test-support/inbound-context-contract.js"; const { answerCallbackQuerySpy, commandSpy, diff --git a/extensions/telegram/src/test-support/inbound-context-contract.ts b/extensions/telegram/src/test-support/inbound-context-contract.ts new file mode 100644 index 00000000000..095f8b23729 --- /dev/null +++ b/extensions/telegram/src/test-support/inbound-context-contract.ts @@ -0,0 +1 @@ +export { expectChannelInboundContextContract } from "../../../../src/channels/plugins/contracts/suites.js"; diff --git a/extensions/telegram/src/test-support/write-skill.ts b/extensions/telegram/src/test-support/write-skill.ts new file mode 100644 index 00000000000..05e12bab9c4 --- /dev/null +++ b/extensions/telegram/src/test-support/write-skill.ts @@ -0,0 +1 @@ +export { writeSkill } from "../../../../src/agents/skills.e2e-test-helpers.js";