-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Enhanced Test Automation with WebdriverIO
By :

Cause: The project was created in a child folder where a separate WDIO project was inadvertently installed in its parent folder. The parent install created a \node_modules
folder, a package.json
and a wdio.conf.ts
file. When the child installation is performed in the sub-folder, it will check for pre-existing shared resources in the parent folder. This will skip the creation of the \node_modules
folder and potentially overwrite the parent package.json
and config files. The sample \specs\test.e2e.js
may initially run in this new child folder. However, a secondary child project install can overwrite the parent \node_modules
folders and config files further, potentially breaking all projects that reference the shared resources, as well as fail to complete the install process.
Solution: Avoid the shared resource model by keeping the parent folder empty: Create a new sub-folder in the parent folder. Move...