refactor: split plugin sdk test helpers

This commit is contained in:
Peter Steinberger
2026-04-28 01:12:56 +01:00
parent d88610cf2b
commit f34b41f198
191 changed files with 627 additions and 270 deletions

View File

@@ -1,4 +1,4 @@
import { createRuntimeEnv } from "openclaw/plugin-sdk/testing";
import { createRuntimeEnv } from "openclaw/plugin-sdk/plugin-test-runtime";
import { beforeEach, describe, expect, it } from "vitest";
import type { RuntimeEnv } from "../runtime-api.js";
import { matrixPlugin } from "./channel.js";

View File

@@ -1,4 +1,4 @@
import { createNonExitingRuntimeEnv } from "openclaw/plugin-sdk/testing";
import { createNonExitingRuntimeEnv } from "openclaw/plugin-sdk/plugin-test-runtime";
import { beforeEach, describe, expect, it, vi } from "vitest";
const resolveMatrixTargetsMock = vi.hoisted(() => vi.fn(async () => []));

View File

@@ -6,5 +6,5 @@ export { resolveAgentRoute } from "openclaw/plugin-sdk/routing";
export {
createTestRegistry,
setActivePluginRegistry,
type OpenClawConfig,
} from "openclaw/plugin-sdk/testing";
} from "openclaw/plugin-sdk/plugin-test-runtime";
export type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";