Creating a basic configuration for the test project
Now, let's assemble all that we have learned in this section and create a folder with the basic configuration for our test project by opening any shell (for example, we will use Terminal with Bash) and executing the following steps:
- As we have already downloaded and installed Node.js, let's check its version:
$ node -v
- Then, create a folder for your future test project:
$ mkdir test-project
- Now, go to that folder and initiate a basic
package.json
file to store all the dependencies:$ cd test-project/ $ npm init --yes
- After that, install the TestCafe package and save it to your list as a development dependency:
$ npm install testcafe --save-dev
- As a final step (for now), create a
.testcaferc.json
configuration file with a minimal set of options:{  "browsers": "chrome",  "src": [    "tests/**/*.js",    "...