HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Unit Testing React Hooks | Hacker News Reader
Unit Testing React Hooks
medium.com
1 point
·
dawchihliou
·
·
1 comment
Open article
Save
View on HN
rydel
·
It is slightly misleading. One cannot test hooks alone - a component, which uses a hook, must be created to act on them to thest if the component behaves properly with the hook. There is no way to make unit test for a hook.
Reply on news.ycombinator.com