(assertion: () => void)
| 794 | |
| 795 | describe('mini galaxy follows the code reader', () => { |
| 796 | const waitForReader = (assertion: () => void) => vi.waitFor(async () => { |
| 797 | await act(async () => { await new Promise(resolve => setTimeout(resolve, 0)); }); |
| 798 | assertion(); |
| 799 | }); |
| 800 | it('frames the active file even when no twin symbol is available', async () => { |
| 801 | await render(props({ focusFilePath: 'src/services/userService.ts' })); |
| 802 | await waitForReader(() => expect(seam().highlightedCount).toBe(1)); |