October 2019
Intermediate to advanced
426 pages
11h 49m
English
Using the React Hooks Testing Library, we can also test more complex Hooks, such as Hooks making use of React context. Most of the custom Hooks we created for our blog app make use of contexts, so we are now going to test those. To test Hooks that use context, we first have to create a context wrapper, and then we can test the Hook.
In this section, we are going to perform the following:
Let's get started.
Read now
Unlock full access