Cypress configuration to access target environments
kind-van-46599
11/15/2022, 6:48 PM
Hi! I have the following entry within package.json "test:cypress": "cypress open --env target=dev" and I wanted to use this flag to control my dotenv path load within cypress.config.ts. How do I access this flag within the configuration file?
kind-van-46599
11/15/2022, 6:48 PM
my current cypress.config.ts looks like below and I have tried accessing the command line argument within setupNodeEvents