test(plugins): mock install slot registry

This commit is contained in:
Shakker
2026-05-01 14:37:39 +01:00
parent 62b1e0d8b8
commit 5e33bfee10

View File

@@ -16,6 +16,7 @@ import {
installPluginFromNpmSpec,
installPluginFromPath,
loadConfig,
loadPluginManifestRegistry,
readConfigFileSnapshot,
parseClawHubPluginSpec,
recordHookInstall,
@@ -385,6 +386,10 @@ describe("plugins cli install", () => {
plugins: [{ id: "alpha", kind: "provider" }],
diagnostics: [],
});
loadPluginManifestRegistry.mockReturnValue({
plugins: [{ id: "alpha", kind: "memory" }],
diagnostics: [],
});
applyExclusiveSlotSelection.mockReturnValue({
config: enabledCfg,
warnings: ["slot adjusted"],