Cypress open test runner cannot find cypress.json file
See original GitHub issuePlease make sure you have read the submission guidelines before posting an issue
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- I am running the latest version
- I checked the documentation (nx.dev) and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)
Expected Behavior
Cypress should recognize and find the e2e folder to be able to open the test runner ui or maybe have a built in nx e2e command that will open the open test runner
What it would look like:
The image aboves doesn’t run the e2e but allows us to choose which file to run
Current Behavior
Running yarn cypress run open
cannot find the cypress.json in the e2e folder inside the apps/ directory.
Could not find a Cypress configuration file, exiting.
We looked but did not find a cypress.json file in this folder: /Users/qjimmy/Desktop/my-app
Instead it says it can’t find the cypress.json in the root of the monorepo.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- Create an nx monorepo with React
- Try to run the cypress e2e test open runner (Should display a ui with the tests files to run)
Context
Please provide any relevant information about your setup:
- Using Nx version 9.2.4
- Current cypress set up was generated by the nx cli
- Mac OS Catalina 10.15.3
- Firefox Developer
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
@qjimmy - does running the following command give you the work flow your looking for?
nx e2e myApp-e2e --watch
I had the same issue after migrating cypress from v9.7.0 to v10.4.0
When I ran it outside of Nx, I got another message :
– EDIT –
What to do :