MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / runCli

Function runCli

test/e2e/agent-install.e2e.test.ts:71–81  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

69}
70
71function runCli(args: string[]): CliResult {
72 const result = spawnSync('node', [BIN_PATH, ...args], {
73 encoding: 'utf8',
74 env: { ...process.env, FORCE_COLOR: '0', NO_COLOR: '1' },
75 });
76 return {
77 status: result.status ?? -1,
78 stdout: result.stdout ?? '',
79 stderr: result.stderr ?? '',
80 };
81}
82
83// ---------------------------------------------------------------------------
84// 1. Fresh install — table-driven over all TARGETS

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected