test: fix plugin skills mock typing · openclaw/openclaw@72d8600
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,12 +11,11 @@ const hoisted = vi.hoisted(() => ({
|
11 | 11 | })); |
12 | 12 | |
13 | 13 | vi.mock("../../plugins/manifest-registry-installed.js", () => ({ |
14 | | -loadPluginManifestRegistryForInstalledIndex: (...args: unknown[]) => |
15 | | -hoisted.loadPluginManifestRegistryForInstalledIndex(...args), |
| 14 | +loadPluginManifestRegistryForInstalledIndex: hoisted.loadPluginManifestRegistryForInstalledIndex, |
16 | 15 | })); |
17 | 16 | |
18 | 17 | vi.mock("../../plugins/plugin-registry.js", () => ({ |
19 | | -loadPluginRegistrySnapshot: (...args: unknown[]) => hoisted.loadPluginRegistrySnapshot(...args), |
| 18 | +loadPluginRegistrySnapshot: hoisted.loadPluginRegistrySnapshot, |
20 | 19 | })); |
21 | 20 | |
22 | 21 | let resolvePluginSkillDirs: typeof import("./plugin-skills.js").resolvePluginSkillDirs; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。