MCPcopy
hub / github.com/callstack/agent-device / runStep

Function runStep

test/integration/smoke-web-platform.test.ts:209–220  ·  view source on GitHub ↗
(
  context: WebSmokeContext,
  step: string,
  args: string[],
  expectedStatus = 0,
)

Source from the content-addressed store, hash-verified

207}
208
209async function runStep(
210 context: WebSmokeContext,
211 step: string,
212 args: string[],
213 expectedStatus = 0,
214): Promise<CliJsonResult> {
215 const result = await runBuiltCliJson(args, context.env);
216 recordStep(context, step, args, result);
217 maybeCaptureSnapshot(context, args, result);
218 if (result.status !== expectedStatus) failWithContext(context, step, args, result);
219 return result;
220}
221
222async function cleanupWebSmoke(context: WebSmokeContext, opened: boolean): Promise<void> {
223 const errors: unknown[] = [];

Callers 6

runWebSmokeFunction · 0.70
assertInitialWebSurfaceFunction · 0.70
assertWebNetworkFunction · 0.70
assertWebInteractionsFunction · 0.70
assertCommandDataFunction · 0.70
cleanupWebSmokeFunction · 0.70

Calls 4

runBuiltCliJsonFunction · 0.90
recordStepFunction · 0.70
maybeCaptureSnapshotFunction · 0.70
failWithContextFunction · 0.70

Tested by

no test coverage detected