October 2019
Intermediate to advanced
426 pages
11h 49m
English
Sometimes, we need to test Hooks that do asynchronous actions. This means that we need to wait a certain period of time until we check the result. To implement tests for these kind of Hooks, we can use the waitForNextUpdate function from the React Hooks Testing Library.
Before we can test async Hooks, we need to learn about the new JavaScript construct called async/await.
Read now
Unlock full access