https://github.com/facebook/jest/issues/1211
When Jest performs code coverage, it seems to only cover the files that were tested instead of all files in my source directory. This gives a skewed percentage of files tested.
Jest 15 added a new config option for this called `collectCoverageFrom``
Can we have support for this in CRA?
We can add it to our config. Should it just look at app's src/? Would you like to send a PR?
Seems someone else raised a PR:
pick up all files for coverage reporting #905
Any update on this ? Is the PR acceptable ? I notice its not CLA signed so does it need to be resubmitted ?
I submitted a pull request #961
Let me know if its acceptable.
Fixed in #961, will be out in 0.8.0.
It is also configurable in the next version.
https://github.com/facebookincubator/create-react-app/pull/1830
Please help beta test the new version that includes this change!
https://github.com/facebookincubator/create-react-app/issues/2172
Most helpful comment
We can add it to our config. Should it just look at app's
src/? Would you like to send a PR?