In this video we are going to learn to write unit test cases for timer apps in React - setTimeout and setInterval.
We are going to show the demo of the sample apps, and then explain the source code of that app. Then we are going to go through the unit test cases for the corresponding app.
In this tutorial, we have used React framework. For unit testing, we have used Jest framework, and for testing helper library, we have used React Testing library.
If you want to know the different between test runner (like Jest) and testing helper library (like React testing library), read the following blog
https://techdoma.in/react-js-testing/...