How to configure Istanbul, e.g. with --include-all-sources?

711 views
Skip to first unread message

ja...@iterate.no

unread,
Apr 27, 2015, 5:02:00 AM4/27/15
to jes...@googlegroups.com
When running jest --coverage, I would like for Istanbul to include all files, not just those that have tests, in coverage computation. When using istanbul standalone, I can just run it with `istanbul cover --include-all-sources ...` but I have no idea how to do that with Jest as it does not expose a way to configure Istanbul.

Could anybody be so kind and advise me? Thank you!

Best regards, Jakub Holy

efen...@thezebra.com

unread,
Jun 3, 2015, 6:55:11 PM6/3/15
to jes...@googlegroups.com, ja...@iterate.no
I ran into a similar issue in my project, and ended up making a gulptask for the job.
https://gist.github.com/ericf89/741aa81bea6c2f7b5249
Let me know if you find a better solution... This basically just lets you use a glob to specify files you pass to jest through its config in the package.json
Reply all
Reply to author
Forward
0 new messages