MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / missingServices

Function missingServices

e2e/src/scenario.ts:220–225  ·  view source on GitHub ↗
(cause: Cause.Cause<unknown>)

Source from the content-addressed store, hash-verified

218
219/** Service keys (sans the e2e/ prefix) whose absence caused this failure. */
220const missingServices = (cause: Cause.Cause<unknown>): ReadonlyArray<string> => {
221 const rendered = String(Cause.squash(cause));
222 return [...rendered.matchAll(/Service not found: e2e\/([^\s(]+)/g)]
223 .map((match) => match[1] ?? "")
224 .filter((name, index, all) => name !== "" && all.indexOf(name) === index);
225};
226
227const failureMessage = (cause: Cause.Cause<unknown>): string => {
228 const rendered = String(Cause.squash(cause));

Callers 1

scenarioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected