I'm new to cypress and have created my first project with a cypress.json file in the root directory.
The contents of this file are as follows:
email: [email protected],
Within the integration folder I have a test case which is attempting to access those environment variables:
This returns undefined. I have also tried this in cypress.env.json and have also tried placing the cypress.json file one level above the Cypress folder.
To run the tests, i'm using
npx cypress open and selecting the test from the gui. Am I running the tests incorrectly or should the file be placed elsewhere? Any ideas?