Recently, React 18 has released and I have upgraded my project to 18. I noticed that all of my unit tests that were written by Jest and Enzyme are failing. I have used mount from Enzyme as a wrapper of my component and noticed the following error:
TypeError: Cannot read property 'child' of undefined
I also tried to check if it has support for React 18 yet but couldn't find any suitable link about that.
Does anybody have any thoughts about that? Or are there any workarounds that can be followed in that case?