React hooks are great, they let you encapsulate little bits of logic that can be shared around your app or even shared as snippets. Think of it as mixins done correctly. For all the awesomeness hooks brings us it seems to be a glaring omission on how to test them.

The current practice for testing a hook is: build a dummy component, interact with said dummy component and observe the output.

Here’s an example: