mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
refactor(plugins): delete registry compat scaffolding (#117749)
* refactor(plugins): delete registry compat scaffolding * test(plugins): update CLI registry handle mock * fix(plugins): preserve explicitly initialized hook registries * test(plugins): update registry ownership fixtures * fix(channels): restore registry snapshot memo
This commit is contained in:
committed by
GitHub
parent
a084763814
commit
ccee629359
@@ -20,6 +20,7 @@ const mocks = vi.hoisted(() => ({
|
||||
vi.mock("./loader.js", () => ({
|
||||
loadOpenClawPluginCliRegistry: (...args: unknown[]) =>
|
||||
mocks.loadOpenClawPluginCliRegistry(...args),
|
||||
loadPluginRegistryHandle: (...args: unknown[]) => mocks.loadOpenClawPlugins(...args),
|
||||
loadOpenClawPlugins: (...args: unknown[]) => mocks.loadOpenClawPlugins(...args),
|
||||
}));
|
||||
|
||||
@@ -385,7 +386,6 @@ describe("registerPluginCliCommands", () => {
|
||||
expect(loadOptions.autoEnabledReasons).toEqual({
|
||||
demo: ["demo configured"],
|
||||
});
|
||||
expect(loadOptions.activate).toBe(false);
|
||||
expect(loadOptions.cache).toBe(false);
|
||||
expect(loadOptions.forceFullRuntimeForChannelPlugins).toBe(true);
|
||||
expect(mocks.loadOpenClawPluginCliRegistry).not.toHaveBeenCalled();
|
||||
|
||||
Reference in New Issue
Block a user