Another great overview of how to use the `react-hooks` extension for the Testing Library suite, with some more complex examples than many other tutorials.
- Source
- Link to Original 🔗
- Published
- Categories
- JavaScript, Nuts & Bolts
- Tags
- QA, testing, Testing Library, React hook, example, mock
Explore Other Notes
⬅ Newer
The value of browser diversity
There are two browser engines in the world. Dave considers what might be lost if that were to become one. He argues that browser diversity forces the standards process to be slow – and therefore …
Older ➡
How to test custom React hooks
I've been doing a fair amount of testing React hooks recently. Part of that has been learning the `react-hooks` extension for the Testing Library suite, which took a while to wrap my head around. …
- <!DOCTYPE html> <html> <head> <title></title> </head> <body> <p>Another great overview of how to use the `react-hooks` extension for the Testing Library suite, with some more complex examples than many other …</p> </body> </html>
- Murray Champernowne