test: trim cli program test bootstrap overhead
This commit is contained in:
@@ -14,6 +14,16 @@ import {
|
||||
installBaseProgramMocks();
|
||||
installSmokeProgramMocks();
|
||||
|
||||
vi.mock("./config-cli.js", () => ({
|
||||
registerConfigCli: (program: {
|
||||
command: (name: string) => { action: (fn: () => unknown) => void };
|
||||
}) => {
|
||||
program.command("config").action(() => configureCommand({}, runtime));
|
||||
},
|
||||
runConfigGet: vi.fn(),
|
||||
runConfigUnset: vi.fn(),
|
||||
}));
|
||||
|
||||
const { buildProgram } = await import("./program.js");
|
||||
|
||||
describe("cli program (smoke)", () => {
|
||||
|
||||
Reference in New Issue
Block a user