(
req: CapturedDaemonRequest,
daemonOptions?: DaemonTransportOptions,
)
| 94 | }) as typeof process.stderr.write; |
| 95 | |
| 96 | const sendToDaemon = async ( |
| 97 | req: CapturedDaemonRequest, |
| 98 | daemonOptions?: DaemonTransportOptions, |
| 99 | ): Promise<DaemonResponse> => { |
| 100 | calls.push(req); |
| 101 | if (options.sendToDaemon) { |
| 102 | return await options.sendToDaemon(req, daemonOptions); |
| 103 | } |
| 104 | return options.defaultResponse ?? { ok: true, data: {} }; |
| 105 | }; |
| 106 | |
| 107 | try { |
| 108 | await runCli(argv, { sendToDaemon }); |
no test coverage detected