createManyPeople function problem

What’s happening:

I’m trying to do the “Create Many Records with Model.create()”. When I try to submit the solution, I get this error:

Creating many db items at once should succeed (Test timed out)

There are no errors for my code in the console.
Here’s my code for the function:

const arrayOfPeople = [
  {
    name: "Osman",
    age: 21,
    favoriteFoods: [
      "burgers",
      "pizza",
      "pasta",
      "meat",
      "chicken",
      "salad",
      "tomatoes"
    ]
  },
  {
    name: "John",
    age: 24,
    favoriteFoods: [
      "pizza",
      "salad"
    ]
  },
  {
    name: "Mary",
    age: 21,
    favoriteFoods: [
      "onions",
      "chicken"
    ]
  }
];

const createManyPeople = (arrayOfPeople, done) => {
  Person.create(arrayOfPeople, (err, people) => {
    if (err) {
      console.log(err);
      return done(err);
    }
    people.forEach((person) => console.log(`${person.name} saved to database`))
    return done(null, people);
  });
};

Here’s my Repl.it link.

My project link(s)

solution: https://boilerplate-mongomongoose.dragonosman.repl.co

Your browser information:

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

Challenge: Create Many Records with model.create()

Link to the challenge:

Okay, returning done from the callback passed to Model.create makes the tests time out. So we shouldn’t return from that callback. I don’t really get why, though.