Tests failing with Mockgoose cause MongoError: topology was destroyed Tests failing with Mockgoose cause MongoError: topology was destroyed mongoose mongoose

Tests failing with Mockgoose cause MongoError: topology was destroyed


Updating to Mockgoose 5.3.0 and Mongoose 4.2.9 solves this problem.

My best guess as to the cause was the beforeEach mockgoose.reset() running at the same time as tests were failing, causing the reset to fail and the mocked database to get stuck in a bad state.