MCPcopy Index your code
hub / github.com/callstack/agent-device / runStep

Function runStep

test/integration/test-helpers.ts:73–81  ·  view source on GitHub ↗
(step: string, args: string[], expectedStatus = 0)

Source from the content-addressed store, hash-verified

71 let artifactDir: string | null = null;
72
73 function runStep(step: string, args: string[], expectedStatus = 0): CliJsonResult {
74 const result = runCliJson(args, { env: extraEnv });
75 recordStep(step, args, result);
76 maybeCaptureSnapshot(args, result);
77 if (result.status !== expectedStatus) {
78 failWithContext(step, args, result);
79 }
80 return result;
81 }
82
83 function runCleanupStep(step: string, args: string[]): CliJsonResult {
84 const result = runCliJson(args, { env: extraEnv });

Callers

nothing calls this directly

Calls 4

runCliJsonFunction · 0.70
recordStepFunction · 0.70
maybeCaptureSnapshotFunction · 0.70
failWithContextFunction · 0.70

Tested by

no test coverage detected