Create a Model Error: Creating an instance from a mongoose schema should succeed

Tell us what’s happening:
Hi,

I am facing an issue while submitting the solution of " MongoDB and Mongoose - Create a Model" challenge. I am getting this error:
Creating an instance from a mongoose schema should succeed

Your code so far
Here are my codes:

let mongoose = require('mongoose')
mongoose.connect(uri, { useNewUrlParser: true, useUnifiedTopology: true });



let personSchema = new mongoose.Schema({
  name: {type: String, required: true},
  age: Number,
  favoriteFoods: [String]
});

let Person = mongoose.model('Person', personSchema);

I don’t see any error at Glitch. But when I try to submit the solution to FreeCodeCamp, I am getting the error. I tried to use the solutions of other similar questions at the forum. But they didn’t work for me.

How can I fix the issue?

Link to Glitch: Glitch

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36.

Challenge: Create a Model

Link to the challenge:

If you provided the error you see, it would be easier to help you.

Hello there,

Would you mind sharing a link to your project code?

Here is the link to the Glitch files: Glitch.

Hello,

Here is the link to the Glitch files: Glitch.

Did you comment this out?


// //----- **DO NOT EDIT BELOW THIS LINE** ----------------------------------

// exports.PersonModel = Person;
// exports.createAndSavePerson = createAndSavePerson;
// exports.findPeopleByName = findPeopleByName;
// exports.findOneByFood = findOneByFood;
// exports.findPersonById = findPersonById;
// exports.findEditThenSave = findEditThenSave;
// exports.findAndUpdate = findAndUpdate;
// exports.createManyPeople = createManyPeople;
// exports.removeById = removeById;
// exports.removeManyPeople = removeManyPeople;
// exports.queryChain = queryChain;

It is needed for the tests