Test cases using Jest and React Testing Library

When it comes to better user experience, handling bugs and fixing a specific component or some of it’s functionality, Testing prevents our ship from sinking post production 😃. Testing frameworks like Jest, provides functions and methods through which we can make various assertions in our project. So, let’s dive into jest and react-testing-library by creating […]

When it comes to better user experience, handling bugs and fixing a specific component or some of it’s functionality, Testing prevents our ship from sinking post production 😃.
Testing frameworks like Jest, provides functions and methods through which we can make various assertions in our project.
So, let’s dive into jest and react-testing-library by creating a simple Counter App using react.
As usual we will setup using cra template
npx create-react-app my-counter cd my-counter npm start Let’s create a simple counter,
Source: Codemancers