Y
Hacker News
new
|
ask
|
show
|
jobs
by
rydel
2781 days ago
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.