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

Function missingServices

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

Source from the content-addressed store, hash-verified

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

Callers 1

scenarioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected