From 635a9362ea8c719d0441d9e7a25fac1aecf0148e Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Tue, 3 Mar 2026 03:06:06 -0500 Subject: [PATCH] test: type mock signature for skill entry loader --- src/agents/pi-embedded-runner/skills-runtime.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/agents/pi-embedded-runner/skills-runtime.test.ts b/src/agents/pi-embedded-runner/skills-runtime.test.ts index 0fb11045128..516d96d8b8f 100644 --- a/src/agents/pi-embedded-runner/skills-runtime.test.ts +++ b/src/agents/pi-embedded-runner/skills-runtime.test.ts @@ -3,7 +3,9 @@ import type { OpenClawConfig } from "../../config/config.js"; import type { SkillSnapshot } from "../skills.js"; const hoisted = vi.hoisted(() => ({ - loadWorkspaceSkillEntries: vi.fn(() => []), + loadWorkspaceSkillEntries: vi.fn( + (_workspaceDir: string, _options?: { config?: OpenClawConfig }) => [], + ), })); vi.mock("../skills.js", async (importOriginal) => {