| 4 | import { join } from 'path' |
| 5 | |
| 6 | const resetModules = async () => { |
| 7 | const envUtilsPath = import.meta.resolve('../../utils/envUtils.ts') |
| 8 | const redrawPath = import.meta.resolve('../../session/replTranscriptResetRedraw.ts') |
| 9 | mock.module(redrawPath, () => ({ |
| 10 | requestReplTranscriptResetRedraw: mock(() => {}), |
| 11 | })) |
| 12 | return { |
| 13 | repaint: await import('./repaint.js'), |
| 14 | redraw: await import('../../session/replTranscriptResetRedraw.js'), |
| 15 | envUtils: await import(envUtilsPath), |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | describe('selectObservedFrameRows', () => { |
| 20 | it('compares the app frame against the top of the visible tmux pane', async () => { |