This right here. Enzyme’s dead, barring some major change, and people need to move off it.
https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl
(Honestly I’m a bit surprised some big company hasn’t taken over Enzyme development - there most be teams facing hundreds ,or thousands, of hours on test rewriting)
It's worse than you know, Enzyme will never support React 18, and it will likely never officially (or fully) support React 17. It's a completely dead project.