test: speed up cli and command suites
This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user