()
| 2899 | }, |
| 2900 | ) |
| 2901 | |
| 2902 | on('command.run', { command: 'clear' }, () => ({})) |
| 2903 | on('prompt.submit', ($, e) => ({ text: e.text, context: e.context })) |
| 2904 | |
| 2905 | async function read() { |
| 2906 | await world.clock.advance(Fixtures.SETTLE_MS) |
| 2907 | |
| 2908 | const pane = Fixtures.jsonOf(await $.ui.render(Fixtures.PANE)) |
| 2909 | |
| 2910 | await $.ui.press({ plugin: 'diff', key: 'ask:app.ts' }) |
| 2911 | await world.clock.settle() |
| 2912 | |
| 2913 | const sent = await $.prompt.submit(Fixtures.typedPromptOf('why?')) |
| 2914 | |
| 2915 | return { pane, sent: Fixtures.jsonOf(sent), runs: world.runs.length } |
no outgoing calls
no test coverage detected