mrvautin

Tag: mocha

Ensure Express App has started before running Mocha/Supertest tests

Seems simple enough but when running tests, I ran into a problem where Mocha/Supertest was not waiting for my Express App to fully start running tests. The relatively easy way to overcome this is to use an event emitter in your Express app and wait f