0

I am running the following command to unit test and generate code code coverage report.

ng test --code-coverage

How do I exclude certain methods and portions of files from code coverage? This answer excludes Whole file, I just want to exclude a portion, class method etc.

angular cli exclude files/directory for `ng test --code-coverage`

"test": {
  "codeCoverageExclude": ["src/assets/vendor/**"],,
  ...
}

0 Answers0