Loading

Once we add tests for all the use cases of our hook, we’ll notice a bunch of common setup, so let’s put that in a setup function.

Transcript

Write a Setup Function to Reduce Duplication of Testing Custom React Hooks