Examples are stubbing out the entire mongoose model and seem to be preventing middleware from being called. Is it possible to test mongoose middleware while mocking?
SomeSchema.pre('save', function(next) {
// doing some pre save stuff here that I would like to test
});