The three main files of a WebdriverIO node project
A lot of files are added while following the WDIO configuration. This is a good time to walk through the project roadmap to get familiar with the features of and relationships between these files, beginning with these three:
package.json
yarn.lock
wdio.config.ts
Let’s look at each one in order of execution.
The package.json file
The first configuration file we will discuss is the package.json
file. It helps manage the project’s dependencies and provides a way to run scripts and access other information about the project. This file serves several purposes:
- It can specify scripts that can be run from the command line. For example, a WebdriverIO project might include a
wdio
script that starts the Webdriver server and awdio-docker
script configured specifically to run on a Docker container instance. - It specifies the project’s dependencies, which are packages that the project...