MCPcopy
hub / github.com/coder/mux / mockExecError

Function mockExecError

src/node/services/coderService.test.ts:44–46  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

42}
43
44function mockExecError(error: Error): void {
45 execFileAsyncSpy?.mockReturnValue(createMockExecResult(Promise.reject(error)));
46}
47
48function isCoderCommand(file: string, args: string[], expectedArgs: string[]): boolean {
49 return (

Callers 1

Calls 1

createMockExecResultFunction · 0.70

Tested by

no test coverage detected