()
| 14 | } |
| 15 | |
| 16 | function makeCapture(): { |
| 17 | capture: CapturedOutput; |
| 18 | deps: Pick<AuthDeps, 'stdout' | 'stderr' | 'preludeWrite'>; |
| 19 | } { |
| 20 | const capture: CapturedOutput = { stdout: [], stderr: [], prelude: [] }; |
| 21 | return { |
| 22 | capture, |
| 23 | deps: { |
| 24 | stdout: line => capture.stdout.push(line), |
| 25 | stderr: line => capture.stderr.push(line), |
| 26 | preludeWrite: chunk => capture.prelude.push(chunk), |
| 27 | }, |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | const sampleMe: MeResponse = { |
| 32 | userId: 'u-1', |