assaf / zombie

Insanely fast, full-stack, headless browser testing using node.js
http://zombie.js.org/
MIT License
5.65k stars 518 forks source link

Rerouting DNS #1175

Open StefanoDeVuono opened 6 years ago

StefanoDeVuono commented 6 years ago

So, zombie.js has a rerouting capability which the Browser class uses to make fakewebsite.com route to localhost. I wanted to generalize and expand on this capability for other testing scenarios. I created a something that expands on reroute.js and intercepts node's DNS to reroute requests.

Is there any interest in spinning this off?