From ad1dee32eb35ede76adfda2add63227ed62a0d51 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Sun, 29 Mar 2026 15:56:40 -0400 Subject: [PATCH] test(cli): fix root-help descriptor mocks openclaw#57165 thanks @gumadeiras --- src/cli/program/root-help.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/program/root-help.test.ts b/src/cli/program/root-help.test.ts index fc1f585b012..9f931cbea4e 100644 --- a/src/cli/program/root-help.test.ts +++ b/src/cli/program/root-help.test.ts @@ -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", () => ({