Mocking Model.insertMany()
maqduni opened this issue · 0 comments
maqduni commented
I have the following expression:
const units = await this.UnitModel.insertMany([{}, {}, {}, {}, {}]);
I can mock Jest's spies, but it's bulky and I'd like to stick to the normal mocking style. How can I mock insertMany()
?