I don’t think there is anything wrong with my code. The code works fine in Compass, but when this is put into the moviesDAO.js and tested against npm test -t get-comments, it fails.
Furthermore, when I test it against the UI http://localhost:5000/status/, it gives me the correct validation string, which has passed my integration testing.
So then, why is it that the jest test case continues to fail for this one? I keep getting the following error.
Please help me to get to the bottom of this. I have gone through all the previous posts for this ticket, but didn’t find anything that explains this… Thank you!!