| 45 | } |
| 46 | |
| 47 | export interface FakeDaemon { |
| 48 | socketPath: string; |
| 49 | /** Every request the client sent after the handshake. */ |
| 50 | requests: RecordedRequest[]; |
| 51 | /** The challenges client-hellos carried. */ |
| 52 | challenges: string[]; |
| 53 | close(): Promise<void>; |
| 54 | } |
| 55 | |
| 56 | export async function startFakeDaemon(root: string, opts: FakeDaemonOptions): Promise<FakeDaemon> { |
| 57 | const socketPath = opts.socketPath ?? getDaemonSocketCandidates(root)[0]!; |
no outgoing calls
no test coverage detected