I’ve just finished this challenge, after struggling with an issue. I just couldn’t pass the test, and the problem ended up being that I called my mongoClient import as follows:
const MongoClient = require('mongodb').MongoClient;
and the testing expected it to be:
const mongo = require('mongodb').MongoClient;
That seemed to solve the problem. I just leave this here in case someone find it useful