Cypress #5570 — Issue reproduction
- Install
node_modules
at the root of the project.
npm install
- Open the Cypress app from the root of the project (with the
--global
option), with the configuration file located atsrc/config/cypress.json
(with the--config-file
option).
$(npm bin)/cypress open --config-file src/config/cypress.json --global
- In the Cypress app, locate the
test
project and open it.
- Check the “Settings” tab, and notice while the path to the configuration file is correctly displayed (
src/config/cypress.json
), its content is not loaded.
- To confirm that the
--global
option is the problem, run the same command without the flag (and with adjusted path to configuration) from within the project folder (src/projects/test
).
cd src/projects/test
$(npm bin)/cypress open --config-file ../../config/cypress.json
Then notice the configuration is properly loaded: