Mongoose V5.11.15 test fails. Dependency and connect OK.
Hello, I am seeking assistance with the Back End Development and APIs V8: Install and Set Up Mongoose challenge.
I am unable to pass, receiving failures on the following two tests:
-
"mongoose version ^5.11.15" dependency should be in package.json -
"mongoose" should be connected to a database
Comprehensive Verification:
-
Dependency: My
package.jsonfile is correctly set with the required version:"mongoose": "^5.11.15". -
Connection Code: My
myApp.jsuses the standard boilerplatemongoose.connect(...)and successfully logs “Successfully connected to MongoDB” upon running. -
Environment Setup: My
MONGO_URIis verified and my MongoDB Atlas Network Access is wide open (0.0.0.0/0).
Since I have confirmed the required dependency is present and the connection is active, I strongly suspect this is the known test runner bug for the V8 curriculum.
Has anyone found a successful workaround or a specific hosting configuration that allows the freeCodeCamp test suite to pass these requirements recently?