happo / happo-cypress

A Happo integration with Cypress.io
35 stars 4 forks source link

Allow setting a HTTP_PROXY environment variable #20

Closed trotzig closed 4 years ago

trotzig commented 4 years ago

Some users need to proxy all outgoing traffic when running Cypress. It already has support for a forward proxy via HTTP_PROXY: https://docs.cypress.io/guides/references/proxy-configuration.html

We can tag along the same setup here. For requests made by the happo.io library we're using the request module, which already supports HTTP_PROXY. We just need to patch node-fetch, as described in this issue: https://github.com/node-fetch/node-fetch/issues/195