MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / createFakeProc

Function createFakeProc

packages/engine/src/services/chunkEncoder.test.ts:63–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61};
62
63function createFakeProc(): FakeProc {
64 const proc = new EventEmitter() as FakeProc;
65 proc.stderr = new EventEmitter();
66 proc.kill = vi.fn(() => {
67 proc.killed = true;
68 return true;
69 });
70 proc.killed = false;
71 return proc;
72}
73
74function createSpawnSpy(): {
75 spawn: (command: string, args: readonly string[]) => FakeProc;

Callers 1

spawnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected