You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to spy on a call to insertMany, but I can't seem to find the proper way to do it. I currently do something similar for find and it seems to work fine. This is how my test looks like:
I want to spy on a call to insertMany, but I can't seem to find the proper way to do it. I currently do something similar for find and it seems to work fine. This is how my test looks like:
I can manage to access the conditions of the find queries like this
findSpy.mock.calls[0][0]._conditions
.However, I've not been able to check through the documents to be inserted using the
insertManySpy
. Anyone knows how can I do this?The text was updated successfully, but these errors were encountered: