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

Function runCommand

packages/cli/src/__tests__/skill-list.test.ts:19–24  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

17let originalCwd: string;
18
19async function runCommand(...args: string[]): Promise<void> {
20 const program = new Command();
21 program.exitOverride();
22 registerSkillCommands(program);
23 await program.parseAsync(["node", "test", ...args]);
24}
25
26beforeEach(async () => {
27 vi.clearAllMocks();

Callers 1

skill-list.test.tsFile · 0.70

Calls 1

registerSkillCommandsFunction · 0.85

Tested by

no test coverage detected