test: speed up cli and command suites

This commit is contained in:
Peter Steinberger
2026-03-31 02:25:02 +01:00
parent 6b6ddcd2a6
commit 3f1d6fe147
83 changed files with 1161 additions and 1054 deletions
+7 -7
View File
@@ -27,13 +27,6 @@ vi.mock("./register.maintenance.js", () => ({
},
}));
const {
getCoreCliCommandNames,
getCoreCliCommandsWithSubcommands,
registerCoreCliByName,
registerCoreCliCommands,
} = await import("./command-registry.js");
vi.mock("./register.status-health-sessions.js", () => ({
registerStatusHealthSessionsCommands: (program: Command) => {
program.command("status");
@@ -44,6 +37,13 @@ vi.mock("./register.status-health-sessions.js", () => ({
},
}));
import {
getCoreCliCommandNames,
getCoreCliCommandsWithSubcommands,
registerCoreCliByName,
registerCoreCliCommands,
} from "./command-registry.js";
const testProgramContext: ProgramContext = {
programVersion: "0.0.0-test",
channelOptions: [],