MCPcopy
hub / github.com/upstash/context7 / runCommand

Function runCommand

packages/cli/src/__tests__/auth-commands.test.ts:72–77  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

70});
71
72async function runCommand(...args: string[]): Promise<void> {
73 const program = new Command();
74 program.exitOverride(); // throw instead of process.exit on commander errors
75 registerAuthCommands(program);
76 await program.parseAsync(["node", "test", ...args]);
77}
78
79describe("login command", () => {
80 test("skips login when valid token exists", async () => {

Callers 1

Calls 1

registerAuthCommandsFunction · 0.85

Tested by

no test coverage detected