refactor: split generic plugin test fixtures

This commit is contained in:
Peter Steinberger
2026-04-28 01:21:29 +01:00
parent e508d81f79
commit 56875c4d32
22 changed files with 105 additions and 51 deletions

View File

@@ -47,6 +47,8 @@ const MOCK_RELATIVE_MODULE_PATTERN =
const RELATIVE_CORE_HINT =
"Use openclaw/plugin-sdk/testing or a focused plugin-sdk test/runtime subpath instead of core internals.";
// Tombstones for retired repo-only plugin helper bridge files. Keep this list so
// deleted bridges fail loudly if they are recreated instead of using SDK subpaths.
const RETIRED_EXTENSION_TEST_HELPER_BRIDGE_FILES = [
"test/helpers/plugins/env.ts",
"test/helpers/plugins/fetch-mock.ts",

View File

@@ -119,6 +119,9 @@ export const pluginSdkDocMetadata = {
"test-env": {
category: "utilities",
},
"test-fixtures": {
category: "utilities",
},
} as const satisfies Record<string, PluginSdkDocMetadata>;
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;

View File

@@ -115,6 +115,7 @@
"plugin-test-runtime",
"provider-test-contracts",
"test-env",
"test-fixtures",
"testing",
"temp-path",
"logging-core",