Open robertoshimizu opened 1 year ago
Strongly agree. I've lost a decent amount of time trying to find a workaround! An update to the library's documentation should be included in jest-mongodb
The README also refers to MongoClient.close()
which no longer exists, due to which I don't know how to do a teardown.
The command
has been deprecated. The
useNewUrlParser
anduseUnifiedTopology
were removed from theMongoClientOptions
as per the explanation given by MongoDb https://www.mongodb.com/community/forums/t/argument-of-type-usenewurlparser-boolean-useunifiedtopology-boolean-is-not-assignable-to-parameter-of-type/169033/3Therefore, it is recommended to update this library's documentation to avoid other users to struggle. Cheers RS