The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Add Code Coverage to tests in a Webpack project

Add Code Coverage to tests in a Webpack project

6:30
How much of your code runs during unit testing is an extremely valuable metric to track. Utilizing code the [`karma-coverage`](https://npmjs.com/package/karma-coverage) plugin and [`babel-plugin-__coverage__`](https://www.npmjs.com/package/babel-plugin-__coverage__) plugin, we can get an accurate measure of how well we’re covering the files that we are testing.
Watch this lesson now
Avatar
egghead.io

How much of your code runs during unit testing is an extremely valuable metric to track. Utilizing code the karma-coverage plugin and babel-plugin-__coverage__ plugin, we can get an accurate measure of how well we’re covering the files that we are testing.

Avatar
activedecay

https://github.com/dtinth/babel-plugin-__coverage__
"This Babel plugin is not maintained anymore, sorry.

Please consider checking out babel-plugin-istanbul."

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?