fix(ci): repair e2e mocks and tool schemas

This commit is contained in:
Peter Steinberger
2026-02-15 22:45:44 +00:00
parent 0e2d8b8a1e
commit bbcbabab74
9 changed files with 65 additions and 43 deletions

View File

@@ -43,6 +43,13 @@ export function installBaseProgramMocks() {
],
configureCommand,
configureCommandWithSections,
configureCommandFromSectionsArg: (sections: unknown, runtime: unknown) => {
const resolved = Array.isArray(sections) ? sections : [];
if (resolved.length > 0) {
return configureCommandWithSections(resolved, runtime);
}
return configureCommand({}, runtime);
},
}));
vi.mock("../commands/setup.js", () => ({ setupCommand }));
vi.mock("../commands/onboard.js", () => ({ onboardCommand }));