Skip to content

Show how to use the Coverage report to remove unused code

Notifications You must be signed in to change notification settings

fosemberg/coverage-report-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coverage report handler

Show how to use the Coverage report to remove unused code

instruction

  • run test page
    npm run start
  • record Coverage report and put in data
  • in src/handle-coverage-report.js write path to your Coverage report
  • build files only with used code
    npm run build
  • check result in build folder
  • yes, we have only the js code used, but unfortunately it is not valid. you can manually fix the errors and then everything will be ok.

The repository was created to answer this question on stackoverflow.com: Remove unused javascript code based on coverage report

About

Show how to use the Coverage report to remove unused code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published