supertest icon indicating copy to clipboard operation
supertest copied to clipboard

Use Hostname with Ephemeral Port

Open maganuk opened this issue 4 years ago • 0 comments

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

maganuk avatar Feb 08 '21 12:02 maganuk