MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / httpStep

Function httpStep

scripts/integration/cli.mjs:1087–1113  ·  view source on GitHub ↗
(
  label,
  method,
  requestPath,
  body,
  requestOptions = {},
  verifyOptions = {},
)

Source from the content-addressed store, hash-verified

1085}
1086
1087async function httpStep(
1088 label,
1089 method,
1090 requestPath,
1091 body,
1092 requestOptions = {},
1093 verifyOptions = {},
1094) {
1095 return measuredStep(
1096 label,
1097 async () => {
1098 logStep(`${label}`);
1099 const result = await retryHttpJson(
1100 method,
1101 requestPath,
1102 body,
1103 label,
1104 requestOptions,
1105 );
1106 if (!verifyOptions.skip) {
1107 await verifyUi(label, verifyOptions);
1108 }
1109 return result;
1110 },
1111 { phase: verifyOptions.phase ?? phaseTest },
1112 );
1113}
1114
1115async function verifyUi(label, options = {}) {
1116 if (!serverProcess) {

Callers

nothing calls this directly

Calls 4

logStepFunction · 0.85
retryHttpJsonFunction · 0.85
verifyUiFunction · 0.85
measuredStepFunction · 0.70

Tested by

no test coverage detected