supertest
supertest copied to clipboard
Use Hostname with Ephemeral Port
I have a battery of tests which need to create a new Express app each. As expected without calling listen(PORT) I get an ephemeral port for every request.
Is there any way I can map the request to a domain name like http://server.com which points to the ephemeral port?
Thanks