morficus / cypress-dotenv

Cypress plugin that enables compatability with dotenv
53 stars 13 forks source link

Windows 10 user account username is used instead of .env username or USERNAME value #25

Open silentchaostheory opened 2 years ago

silentchaostheory commented 2 years ago

In Windows 10, when I install versions above 1.2.2 of this plugin, my user account username is used instead of the .env file USERNAME or username value.

I updated dotenv after realizing I was using a version that was considered incompatible and still saw the issue. This probably means the user executing the npm run command in Powershell, os.userInfo().username, is being used instead of the .env file username|USERNAME.

.env file variables that caused issues and how they appear in Cypress configuration. cypressIssue_LI