Mocha unit testing a mongoose model
Sometimes, when a unit test implies to create an object in database it takes more than the 2 seconds of the default timeout. Try launching mocha increasing timeout and see that it works.
mocha --timeout 10000
forgot to require the app itself.
const app = require('../app');