1. 29
    Ensure all source files are included in test coverage reports with Webpack
    4m 59s

Ensure all source files are included in test coverage reports with Webpack

InstructorKent C. Dodds

Share this video with your friends

Send Tweet

If you’re only instrumenting the files in your project that are under test then your code coverage report will be misleading and it will be difficult for you to track or enforce improvements to application coverage over time. In this lesson we’ll learn how to ensure all source files are included in coverage reports and how to enforce a specific threshold so you can work toward improving application code coverage.

Kent C. Doddsinstructor
~ 8 years ago

You'll want to make certain that the glob is correct for your srcGlob. Negative patterns can be a little tricky, so if you're having trouble, see: http://stackoverflow.com/a/37851445/971592

srinivas
~ 5 years ago

Hi Kent, I'm new to EggHead. This is regarding webpack. Is there any way to convert my html templates to pure javascript variables. I'm already using html webpack plugin. This causing issue of loading templates in third party websites as angular.js(1.x) loads templates as urls.

Could you please help me one this.?