'Cypress open crashing while running on Nx monorepo

Currently trying to run an e2e application on an Nx Monorepo. Using a shared plugin file and support, pulling in a config file depending on the environment and setting the baseUrl on the environment file. It appears to run the first stage of the tests where it speaks to an API to create a user but then crashes the actual test when trying to access the main site. In this case, a development URL. The aim is to allow testing on a local environment once it's been created with nx application then @nwrl/cypress:cypress. Changed it over to a node command to run the cypress open --project with a different env file per environment for each project that is a different area of the site. Now it appears that it's failing to try to mkdir from a different hard disk location or it's running part the way through the test then closing the test and displaying that there are no tests with different projects selected! Any help would be much appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source