Mongoose model (váš Issue ) vrátí novou instanci Query objekt. Nový query instance má přístup k exec pomocí prototype . (mangusta 3,8~)
Pokud chcete vrátit chybu, můžete napsat:
sinon.stub(mongoose.Query.prototype, "exec").yields({ name: "MongoError" }, null);