Mocha exceeding 2000ms timeout when returning a promise [duplicate]
This question already has an answer here: Change default timeout for mocha 4 answers I'm trying to test my Express.js controllers but every so often I run into a problem with the mocha timeout telling me off. The docs ( https://mochajs.org/#working-with-promises ) and the answer here: https://stackoverflow.com/a/26572442/1646372 state that I can just return the promise I'm using. I've wrapped my express controllers with Promises so that I can then return them in the tests. I have a basic test that I can run to consistently get the error message: it('should return', () => { return new Promise