Outdated methods for tests

It appears that the curriculum may be outdated and needs a buff. The last few challenges haven’t been passing tests due to Mongoose methods that have been deprecated and causing errors on repl.it . Just thought you might want to know. More specifically, findOneAndUpdate() and findOneAndDelete() and x.remove() give deprecated notices in the console and the test doesn’t reflect the new methods that should be used. Thank you!

Your code so far

Your browser information:

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

Challenge: Delete One Document Using model.findByIdAndRemove

Link to the challenge:

a deprecated notice doesn’t mean that the method doesn’t work, but it will be no more supported in future versions

if you want help you can post a link to your project and someone will take a look