cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

Environment variable names are not converted to camel case

Open kmewhort opened this issue 3 years ago • 0 comments

The documentation page for Environment Variables states that:

Cypress automatically normalizes both the key and the value. The leading CYPRESS_ or cypress_ is removed and the remaining name is camelCased, while values are converted to Number or Boolean wherever possible.

For example, these enviroment variables in the command line will override any viewportWidth or viewportHeight options set in the Cypress configuration:

In practice, it doesn't seem like this is true. I tried many combination to get jwtToken to flow through from and environment variable, and the only one that works in CYPRESS_jwtToken. Using CYPRESS_JWT_TOKEN does not work, it does not get camelcased.

kmewhort avatar Jun 13 '22 13:06 kmewhort