Maybe this helps someone:
changing the mailHogUrl parameter with using --config flag doesn't work if you are using the cypress-mailhog package.
But it works if you set the mailHogUrl as an Environment variable 🎉 Then in the npm script we can call it with using --env flag:
--env mailHogUrl=your-custom-mailhog-url
I'm a software engineer who loves testing. I'm also a clean coder, blogger, YouTuber, Cypress.io Ambassador, online instructor, speaker, an active member of tech communities.
Location
Barcelona, Spain
Education
Bachelor in business management with an emphasis on system information analysis at PUCRS (2012)
Pronouns
He, him, his
Work
Instructor and Founder at Talking About Testing online school
Maybe this helps someone:
changing the mailHogUrl parameter with using --config flag doesn't work if you are using the cypress-mailhog package.
But it works if you set the mailHogUrl as an Environment variable 🎉 Then in the npm script we can call it with using --env flag:
--env mailHogUrl=your-custom-mailhog-url
That's a great tip! Thanks for sharing, @sheenavanpunk .