MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / mockFailCommand

Function mockFailCommand

scripts/sparc2/src/git/gitIntegration.test.ts:33–44  ·  view source on GitHub ↗
(stderr: string)

Source from the content-addressed store, hash-verified

31
32// Mock failed command execution
33function mockFailCommand(stderr: string) {
34 return {
35 output: () =>
36 Promise.resolve({
37 success: false,
38 stdout: new Uint8Array(0),
39 stderr: new TextEncoder().encode(stderr),
40 code: 1,
41 signal: null,
42 }),
43 };
44}
45
46// Mock logger to avoid actual logging during tests
47import * as logger from "../logger.ts";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected