Issue Tracker Failing Last 3 Tests Despite Functioning

Tell us what’s happening:
I have fully implemented the project including the put and delete methods and am able to see them working and responding with the correct json messages. I’ve also fully built the chai test suite and see all 14 tests as passing when the NODE_ENV variable is uncommented. Yet the last 3 tests in the suite on fCC side keep failing. Are they testing in a different way and is there a way for me to see what their tests look like? I didn’t see it in the github repo.

Your code so far

Your browser information:

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

Challenge: Issue Tracker

Link to the challenge:

Found the solution. Need to asynchronously check to see if an id exists in the database and err handle before even calling findByIdAndRemove and findOneAndUpdate

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.