How can I set environment variable for my cypress test with some name `CYPRESS_SERVICE_SECRET_KEY`?

How can I set environment variable for my cypress test with some name CYPRESS_SERVICE_SECRET_KEY?

Hi Yanisleidi!

You can use the below flag for configuring environment variables for your Cypress tests:

--envs or --env-variables

This flag is used to set environment variables dynamically in the cypress.env.json file.

Syntax

lambdatest-cypress run --envs="a=1,b=2"