You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plugins/sdk-testing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,7 @@ import { mockNodeBuiltinModule } from "openclaw/plugin-sdk/test-node-mocks";
102
102
|`registerProviderPlugins`| Capture provider registrations across multiple plugins. Import from `plugin-sdk/plugin-test-runtime`|
103
103
|`requireRegisteredProvider`| Assert that a provider collection contains an id. Import from `plugin-sdk/plugin-test-runtime`|
104
104
|`createRuntimeEnv`| Build a mocked CLI/plugin runtime environment. Import from `plugin-sdk/plugin-test-runtime`|
105
+
|`createPluginRuntimeMock`| Build a mocked plugin runtime surface. Import from `plugin-sdk/plugin-test-runtime`|
105
106
|`createPluginSetupWizardStatus`| Build setup status helpers for channel plugins. Import from `plugin-sdk/plugin-test-runtime`|
106
107
|`describeOpenAIProviderRuntimeContract`| Install provider-family runtime contract checks. Import from `plugin-sdk/provider-test-contracts`|
107
108
|`expectPassthroughReplayPolicy`| Assert provider replay policies pass through provider-owned tools and metadata. Import from `plugin-sdk/provider-test-contracts`|
@@ -213,11 +214,10 @@ entry to declare `kind: "memory"`.
213
214
214
215
### Testing runtime config access
215
216
216
-
Prefer the shared plugin runtime mock from `openclaw/plugin-sdk/channel-test-helpers`
217
-
when testing bundled channel plugins. Its deprecated `runtime.config.loadConfig()` and
218
-
`runtime.config.writeConfigFile(...)` mocks throw by default so tests catch new
219
-
usage of compatibility APIs. Override those mocks only when the test is
0 commit comments