Hello when I run my tests written with @testing-library/react-hooks I get the following error in my Terminal:
● Console
console.error
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
26 | },
27 | ]
> 28 | const {result} = renderHook(() =>
|
Hello when I run my tests written with
@testing-library/react-hooks
I get the following error in my Terminal:And it's highlighting the
renderHooks
method.react-hooks-testing-library
version: ^8.0.1react
version: ^18.2.0react-dom
version (if applicable): ^18.2.0ga
version (if applicable):node
version: v18.12.1npm
(oryarn
) version: 8.19.2