How to get test coverage from Jest while testing React.js App?
@hankhsiao's fork has been merged. I have been using the latest https://github.com/facebook/jest and getting great results.
jest --coverage
In your package.json under the script section add this piece of code -
test: react-scripts test --coverage
npm test -- --coverage
note that extra --
in the middle, docs