In this brief tutorial we see how to configure code coverage for Jest, the right way.
https://www.valentinog.com/blog/jest-coverage/
* Jest Tutorial for Beginners: Getting Started With JavaScript Testing * official Jest documentation