From 3b358414d342a1c638dcaaf03d8c9dabbbfe661b Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 3 Apr 2026 22:46:51 +0900 Subject: [PATCH] test(channels): use direct contract helper imports --- .../discord/src/monitor/message-handler.inbound-context.test.ts | 2 +- extensions/line/src/bot-message-context.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/discord/src/monitor/message-handler.inbound-context.test.ts b/extensions/discord/src/monitor/message-handler.inbound-context.test.ts index 71cb9ecb0f9..ac421953ad6 100644 --- a/extensions/discord/src/monitor/message-handler.inbound-context.test.ts +++ b/extensions/discord/src/monitor/message-handler.inbound-context.test.ts @@ -1,6 +1,6 @@ import { finalizeInboundContext } from "openclaw/plugin-sdk/reply-dispatch-runtime"; -import { expectChannelInboundContextContract as expectInboundContextContract } from "openclaw/plugin-sdk/testing"; import { describe, expect, it } from "vitest"; +import { expectChannelInboundContextContract as expectInboundContextContract } from "../../../../src/channels/plugins/contracts/suites.js"; import { buildDiscordInboundAccessContext } from "./inbound-context.js"; import { buildFinalizedDiscordDirectInboundContext } from "./inbound-context.test-helpers.js"; diff --git a/extensions/line/src/bot-message-context.test.ts b/extensions/line/src/bot-message-context.test.ts index cdcb8f1bf0d..092abe741c8 100644 --- a/extensions/line/src/bot-message-context.test.ts +++ b/extensions/line/src/bot-message-context.test.ts @@ -5,8 +5,8 @@ import type { MessageEvent, PostbackEvent } from "@line/bot-sdk"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime"; import { __testing as sessionBindingTesting } from "openclaw/plugin-sdk/conversation-runtime"; -import { setDefaultChannelPluginRegistryForTests } from "openclaw/plugin-sdk/testing"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; +import { setDefaultChannelPluginRegistryForTests } from "../../../src/commands/channel-test-helpers.js"; import { buildLineMessageContext, buildLinePostbackContext } from "./bot-message-context.js"; import { linePlugin } from "./channel.js"; import type { ResolvedLineAccount } from "./types.js";