dequelabs / cauldron

https://cauldron.dequelabs.com/
Mozilla Public License 2.0
83 stars 20 forks source link

Update `react-testing-library` #1336

Open scurker opened 5 months ago

scurker commented 5 months ago

We're currently "stuck" on react testing library v12, because versions 13+ have removed support for React v16 and below:

React Testing Library versions 13+ require React v18. If your project uses an older version of React, be sure to install version 12:

This means we can't take advantage of any new queries/matchers that get added to react-testing-library/dom due to the following issues:

If any of the above issues get resolved, it might be possible for us to install the dom library as a peer dependency to take advantage of any new features OR if we fully migrate away from enzyme in order to upgrade to react 17+.

scurker commented 2 months ago

This depends on #1473