refactor: route plugin test helpers through sdk

This commit is contained in:
Peter Steinberger
2026-04-27 23:12:15 +01:00
parent 7975305a89
commit bf4306d1b0
15 changed files with 54 additions and 18 deletions

View File

@@ -1 +1 @@
export { withEnv, withEnvAsync } from "../../../src/test-utils/env.js";
export { withEnv, withEnvAsync } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { withFetchPreconnect, type FetchMock } from "../../../src/test-utils/fetch-mock.js";
export { withFetchPreconnect, type FetchMock } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { createRequestCaptureJsonFetch } from "../../../src/media-understanding/audio.test-helpers.js";
export { createRequestCaptureJsonFetch } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { createMockServerResponse } from "../../../src/test-utils/mock-http-response.js";
export { createMockServerResponse } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { registerSingleProviderPlugin } from "../../../src/test-utils/plugin-registration.js";
export { registerSingleProviderPlugin } from "openclaw/plugin-sdk/testing";

View File

@@ -1,3 +1,5 @@
export { createEmptyPluginRegistry } from "../../../src/plugins/registry.js";
export { setActivePluginRegistry } from "../../../src/plugins/runtime.js";
export { createTestRegistry } from "../../../src/test-utils/channel-plugins.js";
export {
createEmptyPluginRegistry,
createTestRegistry,
setActivePluginRegistry,
} from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { createRuntimeTaskFlow } from "../../../src/plugins/runtime/runtime-taskflow.js";
export { createRuntimeTaskFlow } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { withTempDir } from "../../../src/test-utils/temp-dir.js";
export { withTempDir } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { createTempHomeEnv, type TempHomeEnv } from "../../../src/test-utils/temp-home.js";
export { createTempHomeEnv, type TempHomeEnv } from "openclaw/plugin-sdk/testing";

View File

@@ -1 +1 @@
export { typedCases } from "../../../src/test-utils/typed-cases.js";
export { typedCases } from "openclaw/plugin-sdk/testing";