Jest preset for MongoDB in-memory server
useSharedDBForAllJestWorkers: false
config option (Thanks to @Siloss)
If you're going to use this option, use global.__MONGO_URI__
to reference mongo URL, instead of process.env.MONGO_URL
mongodb-memory-server
to the latest versionmongodb-memory-server
to 6.x that still supports Node 8.x (Fix #285)MongodbMemoryServer.default is not a constructor
error #282https://github.com/shelfio/jest-mongodb/compare/v1.2.4...v1.2.5