We're a place where coders share, stay up-to-date and grow their careers.
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?
istanbul cover ./node_modules/mocha/bin/_mocha tests/*.js
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.
--exit
it
I hope that helps
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 testingThe test never seems to terminate.
What might be the issue here?
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 allit
blocks.I hope that helps