Node app loads successfully sporadically when mocha/chai tests are running

I’ve noticed that my app will load successfully and fail other times. This only occurs when the tests are run-otherwise the app loads fine every time.

I’ve tried use nocache library thinking perhaps something is remembered in between sessions but that doesn’t seem to help.

I’ve tried routing my app db using MongoClient but that also doesn’t seem to help.

This occurs with both IssueTracker and ProjectLibrary from the Quality Assurance Projects.

Here’s the Repl link to my ProjectLibrary:

And the github link: