DEV Community

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

Collapse
 
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?

Collapse
 
kiddeveloper profile image
Samuel Raphael

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