fix(ci): use plugin registry test bridges

This commit is contained in:
Vincent Koc 2026-04-03 23:03:08 +09:00
parent 4b2c7404e5
commit efeee6f921
3 changed files with 9 additions and 4 deletions

View File

@ -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,

View File

@ -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";

View File

@ -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";