I am creating this issue to track the removal of those workarounds once we upgrade the runtime to React@18 and start transitioning to the Concurent Mode.
- [ ] Clean `react-dom/client` introduced in https://github.com/elastic/kibana/pull/198918#issue-2635210946
- [ ] Come up with a migration path from `legacyRoot:true` in testing-library introduced in https://github.com/elastic/kibana/pull/198918#issue-2635210946 as part of the transition to Concurrent Mode
- [ ] Clean console override to mute some of act warning
As part of upgrade to React@18 we've upgraded
@testing-library/react
and introduced some workarounds for it to run with React@17 https://github.com/elastic/kibana/pull/198918I am creating this issue to track the removal of those workarounds once we upgrade the runtime to React@18 and start transitioning to the Concurent Mode.