First of all thank you for the guide. Unfortunately enzyme doesn't have an adapter for React 17. Do you know any alternatives?
I'm getting TypeError: Cannot read property 'child' of undefined
When executing this line: const wrap = mount();
Hopefully they will publish an update github.com/enzymejs/enzyme/pull/2430
You can add "@wojtekmaj /enzyme-adapter-react-17" as your dev dependencies and replace it with "enzyme-adapter-react-16" in the config/setup.js file.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First of all thank you for the guide. Unfortunately enzyme doesn't have an adapter for React 17. Do you know any alternatives?
I'm getting
TypeError: Cannot read property 'child' of undefined
When executing this line:
const wrap = mount();
Hopefully they will publish an update github.com/enzymejs/enzyme/pull/2430
You can add "@wojtekmaj /enzyme-adapter-react-17" as your dev dependencies and replace it with "enzyme-adapter-react-16" in the config/setup.js file.