How to get the code coverage report using Jest?

Is there a way to have code coverage in the JavaScript Jest testing framework, which is built on top of Jasmine?

The internal framework does not print out the code coverage it gets. I’ve also tried using Istanbul, blanket, and JSCover, but none of them work.

11 Answers
11

Leave a Comment