QA Issue Tracker - 14 functional tests

Hi guys! Yet again I am here with a problem…hopefully one that is (like the others) an easy fix that I am carelessly missing. I would greatly appreciate anyone’s help with moving past this!

For the Quality Assurance “Issue Tracker” project, my code pasts all tests except the last one, “All 14 functional tests are complete and passing.” I am also consistently getting this message on the project submission page (pictured in screenshot below): “[Error: expected { status: ‘unavailable’ } to be an array]”

My Replit is here: https://replit.com/@the-ouroboros/boilerplate-project-issuetracker

Some info and screenshots:

The 14 functional tests are passing:
image

All the other tests are passing:

This text displays above my tests on the freeCodeCamp submission page:
image

The “expected array” error message is apparently related to this:
image

NODE-ENV=test is already in "Secrets"3

api.js: https://gist.github.com/3y3l3ss0ur0b0r0s/31fc86e7a813669714245917496e5833

2_functional-tests.js: https://gist.github.com/3y3l3ss0ur0b0r0s/0839fa57c4912f48e9270dc1abe79bc6

The environment variable should be NODE_ENV not NODE-ENV


Why do you have both a mongoose.connect and a MongoClient connect?

3 Likes

OMG… THANK YOU :sob::sob::sob:

Also idk id have to look into that :sob:

2 Likes

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