Project Setup for Jest
Explore how to create a boilerplate React project and set up Jest for unit testing. Understand the basics of running tests and interpreting results to ensure your project is ready for further test development.
We'll cover the following...
We'll cover the following...
Creating a React project
First things first, let’s create a boilerplate React project. I am sure that you have Node installed if you are reading this,. But if not, head here, and install it.
Once you have Node installed, open your favourite terminal, navigate to a project directory (I called it educative-todo), and run this command:
$ npx create-react-app <YOUR APP NAME HERE>
After a few minutes, you will get this project ...