perf(test): mock reserved commands in skill-commands tests

This commit is contained in:
Peter Steinberger
2026-02-14 16:26:39 +00:00
parent 8ff2787981
commit 5349a0f7c2

View File

@@ -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;