()
| 56 | it('does not paint a previous selection under changed props, even before passive effects', async () => { |
| 57 | const captures: string[] = []; |
| 58 | function Observe() { useLayoutEffect(() => { captures.push(container.textContent ?? ''); }); return null; } |
| 59 | const props = { project: 'fixture', onOpenSource: vi.fn(), loadImpact: pendingImpact }; |
| 60 | await act(async () => root.render(<><ChangeAnalysisWorkspace {...props} selectedTarget={{ filePath: 'old.c' }} /><Observe /></>)); |
| 61 | captures.length = 0; |