I forked it and tried the tests. Everything passed except the 14 functional tests, but the browser console (chrome) had an frame-runner.js:98 Error: expected { status: 'unavailable' } to be an array error. I believe it probably has to do with the functional tests (which also pass when run).
The only thing that comes to mind is that you have your test data in a separate file in your test directory and the file test-runner.js tries to load every JS file in that directory as tests for mocha to run and that file does not contain tests. Try just moving the test data into the test file and removing the data file. Maybe.
Unfortunately, not all errors will error to the browser console. And they will only be in the server console if you print them there. What I find curious is that every time I run the tests, the following appears in the server console:
> npm run start
> fcc-issue-tracker@1.0.0 start /home/runner/boilerplate-project-issuetracker-2
> node server.js
Listening on port undefined
undefined
since the unavailable matches the aforementioned browser error and confirmed that this is where the problem lies. Setting process.env.NODE_ENV correctly in the secrets fixed the problem.
Thank you @jeremy.a.gray functional tests will also pass if we set NODE_ENV=test.
But I still see the errors when I run .I was not able to figure it out why it is happening.
So, using your original project, I forked it and all but the functional tests fCC test passed. When I set NODE_ENV secret to test, all fCC tests passed, with the satisfying checkmark and everything. I didn’t change anything else on the project. That was yesterday.
Today, I get the GET error you have in the second version and it times out (everything else passes). I think at this point it’s fairly clear the code works, it just needs to work faster. So you can try to streamline this GET route or you can run your test off hours when fCC, MongoDB, and repl.it are not busy (you could use the conveniently scheduled US holiday weekend when everyone here is watching fireworks).
The real kicker is when I try your second project (no fork, just running it), it passes everything (just now). That would seem to indicate something on your end but I could not speculate what that would be and I don’t like the idea anyway (I’m using a recent version of chrome btw).
I would try to refactor things for more efficient lookups and processing and I think that will solve the problem. It could be that your browser is timing out and not the servers.