MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / runMayFail

Function runMayFail

src/smoke-tests/__tests__/cli-surface.test.ts:22–37  ·  view source on GitHub ↗
(args: string)

Source from the content-addressed store, hash-verified

20};
21
22const runMayFail = (args: string): { stdout: string; status: number } => {
23 try {
24 const stdout = run(args);
25 return { stdout, status: 0 };
26 } catch (err: unknown) {
27 const error = err as NodeJS.ErrnoException & {
28 stdout?: string;
29 stderr?: string;
30 status?: number;
31 };
32 return {
33 stdout: (error.stdout ?? '') + (error.stderr ?? ''),
34 status: error.status ?? 1,
35 };
36 }
37};
38
39describe('CLI Surface (e2e)', () => {
40 describe('top-level', () => {

Callers 1

Calls 1

runFunction · 0.85

Tested by

no test coverage detected