mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
perf(test): mock reserved commands in skill-commands tests
This commit is contained in:
@@ -38,6 +38,11 @@ vi.mock("@mariozechner/pi-coding-agent", () => ({
|
||||
},
|
||||
}));
|
||||
|
||||
// Avoid importing the full chat command registry for reserved-name calculation.
|
||||
vi.mock("./commands-registry.js", () => ({
|
||||
listChatCommands: () => [],
|
||||
}));
|
||||
|
||||
let listSkillCommandsForAgents: typeof import("./skill-commands.js").listSkillCommandsForAgents;
|
||||
let resolveSkillCommandInvocation: typeof import("./skill-commands.js").resolveSkillCommandInvocation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user