({text})
| 289 | |
| 290 | it('should unmount and remount if the key changes', async () => { |
| 291 | function Component({text}) { |
| 292 | useEffect(() => { |
| 293 | Scheduler.log('Mount'); |
| 294 | |
| 295 | return () => { |
| 296 | Scheduler.log('Unmount'); |
| 297 | }; |
| 298 | }, []); |
| 299 | |
| 300 | return <span>{text}</span>; |
| 301 | } |
| 302 | |
| 303 | const root = ReactDOMClient.createRoot(container); |
| 304 |
nothing calls this directly
no test coverage detected