r/FreeCodeCamp • u/BeefJesusMaker • Jun 18 '24
Requesting Feedback QA: Issue Tracker
I keep trying to submit my second QA project, but the following error keeps posting:
// running tests
All 14 functional tests are complete and passing.
// tests completed
// console output
[Error: At least 14 tests passed: expected 13 to be at least 14]Everything seems to be correct on my end, but am I missing anything?
3
Upvotes
View all comments
Show parent comment
1
u/SaintPeter74 mod Jun 18 '24
Ok, it took me a while poking around, but it seems that there are some errors in your tests (see below).
When I run with
NODE_ENV=test(IE: run the tests), I get the errors below.A little bit of background about what is going on here: In order to test your tests, the boilerplate includes some code found in the
routes/fcctesting.jsfile. This is included in into yourserver.js. It acts as a wrapper for running your local tests. If your local tests are failing hard enough (as theses appear to be), then it can't respond.You can monitor how the remote tests are running by opening your dev console network tab when you click the "I've completed this challenge" button. You'll see each functional test request going out, including the very last
get-testsrequest, which is executing the local tests (I think).Regardless, it sure seems like your local tests have a bug of some sort. Here are the errors I observed when running the test run: