Chapter 3: Setting Up the Environment
The main learning goal of this chapter is to get used to setting up the testing environment for writing end-to-end tests using TestCafe. You will learn how to set up a Node.js environment (including TestCafe itself), create a basic configuration file to run the tests, and structure the test code to follow the best practices.
This is especially important because in real life, each new project/repository usually requires a testing infrastructure to be set up to prevent regressions and to keep the code quality high.
To sum up, this chapter will cover the following main topics:
- Setting up the test project environment.
- Creating the test project configuration file.
- Structuring the test code.