enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.95k stars 2.01k forks source link

Support for React 17 with typescript #2504

Closed agnelrdx closed 3 years ago

agnelrdx commented 3 years ago

The adapter is available for v16 (enzyme enzyme-adapter-react-16). It should support the new version of React (v17).

Using enzyme-adapter-react-16 for React v17 is throwing an error when using mount.

ljharb commented 3 years ago

There will be a brand new adapter for React 17. Until that time, React 17 is incompatible with enzyme, and you have to stick with React 16 to use enzyme.

Duplicate of #2429. Duplicate of #2503.