MongoDB - Create a Model (Not Passing)

I’ve spent hours testing so many potential reasons for why it’s not passing. Could someone help me out :frowning:
All it says is “Creating an instance from a mongoose schema should succeed”

My replit:
boilerplate-mongomongoose - Replit

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

module.exports = mongoose.model('Person', personSchema);

What is your reasoning for the 2nd line above?

It was part of the existing code from the imported github link that freecodecamp provided. I figured I shouldn’t delete anything that came with it or it might break the tests.

See myApp.js in the starting boilerplate code and you will see that 2nd line does not appear anywhere in the file.

1 Like