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

Function runCommand

packages/cli/src/__tests__/remove.test.ts:42–47  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

40}
41
42async function runCommand(...args: string[]): Promise<void> {
43 const program = new Command();
44 program.exitOverride();
45 registerRemoveCommand(program);
46 await program.parseAsync(["node", "test", ...args]);
47}
48
49beforeEach(async () => {
50 vi.clearAllMocks();

Callers 1

remove.test.tsFile · 0.70

Calls 1

registerRemoveCommandFunction · 0.85

Tested by

no test coverage detected