I am working on developing a REST API using ExpressJS, NodeJS, Mongoose and Mocha.
The thing is that I have an app.coffee file, thats responsible for setting up Expr
The app.listen method takes a callback that runs when everything is ready. So, you need to be able to pass the done callback there. Something like
before (done) -> var app = require(__dirname + '/../src/app') app.listen(3000, done)