Thanks for the thought. I tried that before posting. With NODE_ENV set to ‘test’, it fails all but the the first test in the browser and when not set to ‘test’ it fails just the last test.
I wasn’t getting any errors, but I noticed an ‘undefined’ logged to the console. After some digging I found that the undefined was actually a poorly labeled error being thrown by code in fcctesting.js.
Knowing that my code was actually throwing an error made me revisit my tests again. It appears that in one of the tests, I was calling done() outside of .end().
Thanks for the suggestion, it helped me figure this out!