mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:10:58 +00:00
refactor: split plugin sdk test helpers
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 () => []));
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user