This lesson is for PRO members.

Unlock this lesson NOW!
Already subscribed? sign in

Add Code Coverage to tests in a Webpack project

6:30 Tools lesson by

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.

Get the Code Now
click to level up

egghead.io comment guidelines

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

Featured course:

Create an SVG Icon System

Create an SVG Icon System

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?