How do you find the code coverage for angular 2 code? Is there any plugin for vs code editor or webstorm that I can use? I am using Jasmine and Karma for unit testing of my code
I struggled with this one. The solution I found was
ng test --code-coverage
But make sure that in your karma.conf.js file, you have a reporter specified (I use 'coverage-istanbul')
e.g. reporters: ['coverage-istanbul']
The coverage report will be in a directory called 'coverage' in your root directory.