mikhail-angelov / mongo-unit

MIT License
72 stars 39 forks source link

Deprecation Warnings #44

Open Flashrob opened 3 years ago

Flashrob commented 3 years ago

(node:1237) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:1237) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

Getting these warnings when running tests with mongoUnit

ancoca13 commented 1 year ago

I also got a warning after mongoUnit.start:

(node:8756) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead

delfuego commented 1 year ago

Same as @ancoca13, and the deprecated call appears to be happening here.