LaunchPadLab / lp-components

Our Components
http://lp-components.herokuapp.com
MIT License
5 stars 1 forks source link

Replace Enzyme with React Testing Library #567

Closed chawes13 closed 7 months ago

chawes13 commented 2 years ago

This will accommodate allowing this library to be confidently tested against React 18.

Enzyme does not officially support v18 (or v17 for that matter). The author of the unofficial v17 adapter has recommended switching to RTL and considers Enzyme "dead".

https://github.com/enzymejs/enzyme/issues/2524 https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/

josiasds commented 8 months ago

@chawes13 I assume we can close this issue now?

chawes13 commented 7 months ago

😲 I guess we didn't use the right keywords to link this issue! Yes, definitely.