28 ms·
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 proper
by rydel 8y 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.