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.25k stars 230 forks source link

Lib incompatible with react@18.2.0 version #966

Closed saileerane closed 11 months 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 11 months 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 11 months ago

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