I’m trying to get the latest version of mongodb-memory-server
working with jest
on a node
express
server. I’m trying to follow the guide in the mongodb-memory-server
documentation (https://nodkz.github.io/mongodb-memory-server/docs/guides/integration-examples/test-runners#jest), but it seems to leave blanks and I can’t figure out how to fill them in.
I’ve made a repo of my best effort to piece it together: https://github.com/jimmythecode/mongodbmemoryserver-guide
I can’t find any instructions online except for older versions of mongodb-memory-server
. Can anyone please help?
2
Answers
I've managed to get it working and have updated it in this branch, in case it helps anyone.
Here is my working setup with "mongodb-memory-server": "^8.5.2" and "jest": "^28.1.0". Please Check