mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 22:40:43 +00:00
fix(cli): keep plugin toggles out of channel config (#76525)
This commit is contained in:
@@ -198,11 +198,15 @@ vi.mock("../plugins/marketplace.js", () => ({
|
||||
}));
|
||||
|
||||
vi.mock("../plugins/enable.js", () => ({
|
||||
enablePluginInConfig: ((cfg: OpenClawConfig, pluginId: string) =>
|
||||
invokeMock<[OpenClawConfig, string], unknown>(
|
||||
enablePluginInConfig: ((
|
||||
...args: Parameters<(typeof import("../plugins/enable.js"))["enablePluginInConfig"]>
|
||||
) =>
|
||||
invokeMock<
|
||||
Parameters<(typeof import("../plugins/enable.js"))["enablePluginInConfig"]>,
|
||||
unknown
|
||||
>(
|
||||
enablePluginInConfig,
|
||||
cfg,
|
||||
pluginId,
|
||||
...args,
|
||||
)) as (typeof import("../plugins/enable.js"))["enablePluginInConfig"],
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user