(fn: () => Promise<T> | T)
| 54 | } |
| 55 | |
| 56 | async function withInteractive<T>(fn: () => Promise<T> | T): Promise<T> { |
| 57 | const previous = getIsInteractive() |
| 58 | setIsInteractive(true) |
| 59 | try { |
| 60 | return await fn() |
| 61 | } finally { |
| 62 | setIsInteractive(previous) |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | describe('fullscreen tmux policy', () => { |
| 67 | it('auto-disables fullscreen in tmux control-mode heuristic environments', async () => { |
no test coverage detected