DEV Community


Discussion on: Testing A Node/Express Application With Mocha & Chai

wombolo profile image
Dídùnlolúwa • Edited

Hi Samuel, this was a great & helpful post.
But I seem to run into issues when I run istanbul cover ./node_modules/mocha/bin/_mocha tests/*.js command for testing
The test never seems to terminate.
What might be the issue here?

asciidev profile image
Samuel Raphael Author

Hi Didunloluwa,

Thanks for reaching out.

I think you need to add this flag --exit to the end of the command. That tells the test to exit once it's done running all it blocks.

I hope that helps