You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frisby v2.x uses the fetch API, so if there is a way to do it with that, then it can be done. I would also entertain a more direct method of doing this as well if you have other ideas.
At the moment, the only solution I could find is through using https-proxy-agent by doing the following:
let proxy = process.env.https_proxy || 'http://127.0.0.1:8888';
frisby.get('https://testurl.com', { agent: new HttpsProxyAgent(proxy)})
alternative would be to use frisby.fetch() but both work the same. Not the most elegant solution unless there was a way to include this in my global set-up which i'm still trying to figure out.
In frisby 0.8.x I was able to route all my traffic from my tests into Fiddler for further debugging using the following:
process.env.https_proxy = "http://127.0.0.1:8888";
process.env.http_proxy = "http://127.0.0.1:8888";
Now with Frisby 2.0.x I am unable to capture any traffic at all. Is there any way to set the proxy with the new implementation?
The text was updated successfully, but these errors were encountered: