(opts: {
output: string;
taskInfo?: BackgroundTaskInfo;
rows?: number;
columns?: number;
onClose?: () => void;
})
| 52 | } |
| 53 | |
| 54 | function makeViewer(opts: { |
| 55 | output: string; |
| 56 | taskInfo?: BackgroundTaskInfo; |
| 57 | rows?: number; |
| 58 | columns?: number; |
| 59 | onClose?: () => void; |
| 60 | }): TaskOutputViewer { |
| 61 | return new TaskOutputViewer( |
| 62 | { |
| 63 | taskId: opts.taskInfo?.taskId ?? 'bash-aaaaaaaa', |
| 64 | info: opts.taskInfo ?? info(), |
| 65 | output: opts.output, |
| 66 | onClose: opts.onClose ?? (() => {}), |
| 67 | }, |
| 68 | fakeTerminal(opts.rows ?? 30, opts.columns ?? 120), |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | describe('TaskOutputViewer — rendering', () => { |
| 73 | it('fills exactly terminal.rows lines', () => { |
no test coverage detected