Setting up the test project environment
It is important to set up the environment properly now as we will be using it for the rest of the chapter and up to the end of this book. Doing so will also help you understand the basics of how Node.js deals with different packages and how to spin up pretty much any JavaScript/Node.js-based testing framework. We will divide the setup process into two sections:
- Installing Node.js.
- Installing TestCafe.
So, let's go through the whole process, starting from the beginning—installing Node.js.
Installing Node.js
JavaScript is a client-side programming language that mostly deals with the frontend, which means it is usually processed by the browser of each user that opens your website or web application. Node.js was developed as a JavaScript runtime environment to provide the ability to use JavaScript as a server-side backend language.
In order to launch almost any development tools written in JavaScript, you&apos...