From f46fec4f4c8f7a7e59f06b83eff2310f0a7b055b Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 10:23:21 +0100 Subject: [PATCH] test: clarify skills cli log assertions --- src/cli/skills-cli.commands.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/cli/skills-cli.commands.test.ts b/src/cli/skills-cli.commands.test.ts index 2829f8a418e..27614cfe231 100644 --- a/src/cli/skills-cli.commands.test.ts +++ b/src/cli/skills-cli.commands.test.ts @@ -220,7 +220,9 @@ describe("skills cli commands", () => { query: "calendar", limit: undefined, }); - expect(runtimeLogs.some((line) => line.includes("calendar v1.2.3 Calendar"))).toBe(true); + expect(runtimeLogs).toEqual( + expect.arrayContaining([expect.stringContaining("calendar v1.2.3 Calendar")]), + ); }); it("installs a skill from ClawHub into the active workspace", async () => { @@ -335,8 +337,8 @@ describe("skills cli commands", () => { slug: undefined, logger: expect.any(Object), }); - expect(runtimeLogs.some((line) => line.includes("Updated calendar: 1.2.2 -> 1.2.3"))).toBe( - true, + expect(runtimeLogs).toEqual( + expect.arrayContaining([expect.stringContaining("Updated calendar: 1.2.2 -> 1.2.3")]), ); expect(runtimeErrors).toEqual([]); });