feat: Add `renderHook` by eps1lon · Pull Request #991 · testing-library/react-testing-library · GitHub
DRANK
What: Imlement minimal renderHook from @testing-library/react-hooks Why: @testing-library/react-hooks is not compatible with React 18 and it's questionable if certain APIs will make sense in React ...
3 comments
Hooksのテストで、いつも私に安心と安全をくれるrenderHook。
testing-library/reactでrenderHookが実装されたから、testing-library/react-hooksは不要になる。
書き換えないと🏋️♂️
github.com/testing-librar…
#react #JavaScript
react-testing-library v13.1でrenderHookが提供されるようになりました。
これにより、react-hooks-testing-libraryの大部分の機能がカバーされるので、react-hooks-testing-libraryを非推奨としてアーカイブする予定とのことです。
github.com/testing-librar…
testing-library/react-hooksのReact 18対応、testing-library/react-testing-libraryにrenderHookが実装されるの待ちぽい雰囲気あるな。
renderHookが実装されたら、react-hooks不要ぽい?
feat: Add
renderHook
by eps1lon · Pull Request #991github.com/testing-librar…