We have to migrate out of enzyme to fully move to React18. Pending React18 PR: #2504 https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl