testing-library / react-hooks-testing-library

🐏 Simple and complete React hooks testing utilities that encourage good testing practices.
https://react-hooks-testing-library.com
MIT License
5.26k stars 233 forks source link

Lib incompatible with react@18.2.0 version #966

Closed saileerane closed 1 year ago

saileerane commented 1 year ago

What is this issue about:

The latest version of @testing-library/react-hooks v8.0.1 is not compatible with react@18.2.0 It will be great if this support is provided

davidgoli commented 1 year ago

renderHook has been moved to @testing-library/react, and importing from @testing-library/react-hooks is deprecated. You should update your imports accordingly.

xobotyi commented 1 year ago

yet it is not only imports, @testing-library/react version is incompatible with this one and requires rewriting most of test, not to say that it completely lacks server version

joshuaellis commented 1 year ago

We're aware of this, I think there's actually a note on the readme.