()
| 159 | |
| 160 | test('keeps autoUpdate wired when an active anchor is removed', async () => { |
| 161 | const RemovableTest = () => { |
| 162 | const [showAnchor, setShowAnchor] = useState(true) |
| 163 | |
| 164 | return ( |
| 165 | <div> |
| 166 | {showAnchor && <span data-tooltip-id="removable-test">Hover Me</span>} |
| 167 | <button onClick={() => setShowAnchor(false)}>Remove Anchor</button> |
| 168 | <TooltipController id="removable-test" content="Removable Test" /> |
| 169 | </div> |
| 170 | ) |
| 171 | } |
| 172 | |
| 173 | await renderAndFlush(<RemovableTest />) |
| 174 |
nothing calls this directly
no outgoing calls
no test coverage detected