test(cli): fix root-help descriptor mocks openclaw#57165 thanks @gumadeiras

This commit is contained in:
Gustavo Madeira Santana 2026-03-29 15:56:40 -04:00
parent 1b892ee02a
commit ad1dee32eb
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -5,8 +5,10 @@ vi.mock("./core-command-descriptors.js", () => ({
{
name: "status",
description: "Show status",
hasSubcommands: false,
},
],
getCoreCliCommandsWithSubcommands: () => [],
}));
vi.mock("./subcli-descriptors.js", () => ({
@ -14,8 +16,10 @@ vi.mock("./subcli-descriptors.js", () => ({
{
name: "config",
description: "Manage config",
hasSubcommands: true,
},
],
getSubCliCommandsWithSubcommands: () => ["config"],
}));
vi.mock("../../plugins/cli.js", () => ({