Tell us what’s happening:
Describe your issue in detail here.
The issue is that the tests fail although I have even copied the solution provided by freecodecamp and refreshed the page many times; stopped and started the replit server a few times but in spite of all this the tests fail and give the message:
// running tests
Deleting many items at once should succeed
// tests completed
I can not proceed to the next step. There should be some way to go ahead if the tests fail due to some problems at freecodecamp which the students don’t know about.
What can be done to solve this problem?
The solution that fails the tests is here:
You might want to try deleting all your browser’s history, caches and everything. At one point I did experienced of keep getting error the same error whatever I did and passed the specs after I cleaned up the browser’s history, thus a False Negative. Who knows.
If you want to skip around to other instructions, you can always click at the very top of the page to get to the overview of that particular curriculum, and just click on any specific bullet you want to try working on.
Yes, you are right as I tried everything including Promises and examples given in the official documentation of the function deleteMany() but the freecodecamp test would not pass it. Finally, I had to install mongodb@~3.6.0 and mongoose@~5.4.0 and the tests passed.
Yeah, a version number can make a big difference. At work, whenever we update a package (especially for a major version change), we do it very cautiously.