I am not sure why is this not working.
I might be having issue in connecting it to the database but even if that’s the problem why am I not passing package.json test case
Describe your issue in detail here.
You should have your MONGO_URI stored in your .env file. DO NOT include it in your publicly visible code.
The format of the URI should be similar to this: mongodb+srv://<username>:<password>@<cluster-name>.prx1c.mongodb.net/<db-name>?retryWrites=true&w=majority
You should only need to insert your password, as all other fields should already be filled in for you.
NOTE: If your password contains any of these special characters, you will need to use percent encoding: : / ? # [ ] @
No, you need to follow the instructions which are linked in the challenge description:
These instructions will help you to set up a MongDB Atlas account with a unique username and password which you can then use to create your URI, to be used to connect to your database cluster from repl (or elsewhere).