Tell us what’s happening:
Describe your issue in detail here.
The code is working fine on local machine and cosesandbox. It’s connected to db used .then(() => cosnole.log(“connected”)). Though, it’ s not passing the test cases.
Your project link(s)
let express = require(“express”);
let app = express();
require(“dotenv”).config();
let mongoose = require(“mongoose”);
let uri = process.env[“MONGO_URI”];
mongoose.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
}).then(() => console.log(“Connected”));
solution: https://hnxhov-3000.csb.app
Your browser information:
Challenge: MongoDB and Mongoose - Install and Set Up Mongoose
Link to the challenge: