mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
refactor: split plugin sdk test helpers
This commit is contained in:
@@ -11,7 +11,7 @@ const FORBIDDEN_PATTERNS: Array<{ pattern: RegExp; hint: string }> = [
|
||||
},
|
||||
{
|
||||
pattern: /["']openclaw\/plugin-sdk\/test-utils["']/,
|
||||
hint: "Use openclaw/plugin-sdk/testing for the public extension test surface.",
|
||||
hint: "Use openclaw/plugin-sdk/testing or a focused plugin-sdk test subpath for the public extension test surface.",
|
||||
},
|
||||
{
|
||||
pattern: /["']openclaw\/plugin-sdk\/compat["']/,
|
||||
@@ -35,7 +35,7 @@ const FORBIDDEN_PATTERNS: Array<{ pattern: RegExp; hint: string }> = [
|
||||
},
|
||||
{
|
||||
pattern: /["'](?:\.\.\/)+(?:src\/channels\/plugins\/contracts\/test-helpers\.js)["']/,
|
||||
hint: "Use openclaw/plugin-sdk/testing for channel contract test helpers.",
|
||||
hint: "Use openclaw/plugin-sdk/channel-contract-testing for channel contract test helpers.",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -47,6 +47,9 @@ export const pluginSdkDocMetadata = {
|
||||
"plugin-test-contracts": {
|
||||
category: "utilities",
|
||||
},
|
||||
"plugin-test-runtime": {
|
||||
category: "utilities",
|
||||
},
|
||||
"channel-actions": {
|
||||
category: "channel",
|
||||
},
|
||||
@@ -113,6 +116,9 @@ export const pluginSdkDocMetadata = {
|
||||
"provider-test-contracts": {
|
||||
category: "utilities",
|
||||
},
|
||||
"test-env": {
|
||||
category: "utilities",
|
||||
},
|
||||
} as const satisfies Record<string, PluginSdkDocMetadata>;
|
||||
|
||||
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;
|
||||
|
||||
@@ -112,7 +112,9 @@
|
||||
"channel-test-helpers",
|
||||
"plugin-test-api",
|
||||
"plugin-test-contracts",
|
||||
"plugin-test-runtime",
|
||||
"provider-test-contracts",
|
||||
"test-env",
|
||||
"testing",
|
||||
"temp-path",
|
||||
"logging-core",
|
||||
|
||||
Reference in New Issue
Block a user