test: align plugin install metadata fixtures · openclaw/openclaw@8567adf
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -132,6 +132,8 @@ Telegraph style. Root rules only. Read scoped `AGENTS.md` before subtree work.
|
132 | 132 | - Hot tests: avoid per-test `vi.resetModules()` + heavy imports. Measure with `pnpm test:perf:imports <file>` / `pnpm test:perf:hotspots --limit N`. |
133 | 133 | - Seam depth: pure helper/contract unit tests; one integration smoke per boundary. |
134 | 134 | - Mock expensive seams directly: scanners, manifests, registries, fs crawls, provider SDKs, network/process launch. |
| 135 | +- Plugin tests mocking `plugin-registry` need both manifest-registry and metadata-snapshot exports; missing `loadPluginRegistrySnapshotWithMetadata` masks install/slot behavior. |
| 136 | +- Thread-bound subagent tests that do not create a requester transcript should set `context: "isolated"` so fork-context validation does not hide lifecycle cleanup paths. |
135 | 137 | - Prefer injection; if module mocking, mock narrow local `*.runtime.ts`, not broad barrels or `openclaw/plugin-sdk/*`. |
136 | 138 | - Share fixtures/builders; delete duplicate assertions; assert behavior that can regress here. |
137 | 139 | - Do not edit baseline/inventory/ignore/snapshot/expected-failure files to silence checks without explicit approval. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。