( fixture: ReplTmuxFixture, timeoutMs = 8000, )
| 88 | } |
| 89 | |
| 90 | export async function waitForReplTmuxPrompt( |
| 91 | fixture: ReplTmuxFixture, |
| 92 | timeoutMs = 8000, |
| 93 | ): Promise<string> { |
| 94 | return await waitForText( |
| 95 | () => capturePane(fixture.session, { startLine: -120 }), |
| 96 | pane => rowsContainSubstring(pane.split('\n'), '❯'), |
| 97 | { timeoutMs, label: 'real tmux REPL startup prompt' }, |
| 98 | ) |
| 99 | } |
no test coverage detected