What can I do in order to pass the ‘pass 14 functional tests’ test and therefore complete the challenge and move on? Is there something wrong with the way free code camp itself performs its tests or am I doing something wrong?
Right now repl seems to be stopped, so that’s why all tests are failing. Try starting it again.
The failing test from the original post tries to access tests using _api/get-tests route. When page was still working I’ve tried that route and got response suggesting environment variable was not set. If it is set there might be something different going on.
This isn’t the reason for the issue above, but it seems some of the tests are relying on the data that was entered outside of the tests. Particularly those regarding Test_project_2. Because of that forking code and trying to run it (with changed mongodb), to play around with it and try to reproduce problem, would need to change tests code at the start.
Thanks, I haven’t had any specific issue with it now.
Every few runs there was one, in which, after finishing functional tests, page was no longer working. I don’t know why. However if after these tests, page was still working, it was possible to submit project without problems. So I guess you could try starting/stopping repl couple of times, until it still stable after functional tests and submit it then.
Thanks for all of your help @sanity , thanks to you I finally managed to pass all the tests!
In the end what worked was going to MongoDB and deleting/‘dropping’ all of the issues from the database, then running my repl, and then finally clicking on the ‘I’ve completed this challenge’ button to pass all of the tests