diff --git a/extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts b/extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts index 37d676b060f..fcb356c1932 100644 --- a/extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts +++ b/extensions/discord/src/monitor/native-command.plugin-dispatch.test.ts @@ -3,8 +3,10 @@ import type { NativeCommandSpec } from "openclaw/plugin-sdk/command-auth"; import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; import { clearPluginCommands, registerPluginCommand } from "openclaw/plugin-sdk/plugin-runtime"; import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; -import { setActivePluginRegistry } from "../../../../src/plugins/runtime.js"; -import { createTestRegistry } from "../../../../src/test-utils/channel-plugins.js"; +import { + createTestRegistry, + setActivePluginRegistry, +} from "../../../../test/helpers/plugins/plugin-registry.js"; import { createMockCommandInteraction, type MockCommandInteraction, diff --git a/extensions/line/src/bot-message-context.test.ts b/extensions/line/src/bot-message-context.test.ts index 748e87aaea7..25e1bef3959 100644 --- a/extensions/line/src/bot-message-context.test.ts +++ b/extensions/line/src/bot-message-context.test.ts @@ -6,8 +6,10 @@ 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 { afterEach, beforeEach, describe, expect, it } from "vitest"; -import { setActivePluginRegistry } from "../../../src/plugins/runtime.js"; -import { createTestRegistry } from "../../../src/test-utils/channel-plugins.js"; +import { + createTestRegistry, + setActivePluginRegistry, +} from "../../../test/helpers/plugins/plugin-registry.js"; import { buildLineMessageContext, buildLinePostbackContext } from "./bot-message-context.js"; import { linePlugin } from "./channel.js"; import type { ResolvedLineAccount } from "./types.js"; diff --git a/test/helpers/plugins/plugin-registry.ts b/test/helpers/plugins/plugin-registry.ts index 40b23db0cdb..c75fe4838bc 100644 --- a/test/helpers/plugins/plugin-registry.ts +++ b/test/helpers/plugins/plugin-registry.ts @@ -1,2 +1,3 @@ export { createEmptyPluginRegistry } from "../../../src/plugins/registry.js"; export { setActivePluginRegistry } from "../../../src/plugins/runtime.js"; +export { createTestRegistry } from "../../../src/test-utils/channel-plugins.js";