Thanks @Shimon_Shtein !
I saw this comment the other day in Support for React 18 · Issue #2524 · enzymejs/enzyme · GitHub
If you’ve got a large number of enzyme unit tests (> 1200 in our case) but you still want to switch to react 18 right now and migrate to react-testing-library progressively you can do it with this method (inspired by this article)
For React 17 there’s an unofficial adapter for Enzyme: GitHub - wojtekmaj/enzyme-adapter-react-17: Unofficial adapter for React 17 for Enzyme.
but for React 18 it will definitely break… but with Support for React 18 · Issue #2524 · enzymejs/enzyme · GitHub we might not need to replace all of our tests that used Enzyme.