I want write a test in mocha for how a timeout is handled.
I can set up a server that will never answer using netcat nc -kl 8080
(thanks https://stackoverflow.com/a/37465639/5203563).
However, since I already run an express server for all my other test endpoints inside mocha, it would be great if I could achieve the same thing with an express endpoint.
Does anybody know if that is possible?