xxxxxxxxxx
add your current ip to your mongodb atlas
xxxxxxxxxx
add your current ip to your mongodb atlas
or
You have to stub your function, because it may be pulling directly from the
database.
xxxxxxxxxx
This link explains everything, solve the issue.
https://dev.to/veroca88/set-up-mongodb-atlas-and-connect-with-node-js-avoid-mongooseerror-operation-x-findone-buffering-timed-out-after-10000ms-5dpi