-
I noticed it's recommended to use this instead of cy2 now. I haven't had the specific problems with cy2 and Cypress 12.8.x yet that it warns about yet, but I thought I would give it a try to prepare for what seems the inevitable future? But I ran into an issue trying cypress-cloud. We're a bit new to sorry-cypress. When I ran this command:
I got this error:
After some triage, I determined it was because we are modifying config.env in the
If I comment out the lines that set config.env, then it finds our specs and proceeds past that error (I get a different error I made an issue about), It doesn't matter what I do to config.env, the actual keys/values don't seem to matter, just any modification of any kind. So I assume there must be some kind of hashing going on that links that generated spec glob pattern to the config.env? So my question is it wrong to be modifying the config.env in that function, or should cypress-cloud handle that situation, or is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you're modifying the config, please make sure to preserve the original env values. As an alternative, please lift
|
Beta Was this translation helpful? Give feedback.
cloudPlugin(on, config)
indeed expects someenv
variables fromconfig
passed tosetupNodeEvents(on, config)
.If you're modifying the config, please make sure to preserve the original env values.
As an alternative, please lift
cloudPlugin
invocation (currently it doesn't return any value)