The total karma-coverage coverage is zero. Ask for help.

ask for advice on code coverage of automated testing

clipboard.png

0
karma:

clipboard.png

./index.js:

clipboard.png

spec.js:

clipboard.png

srcContext../../app/common/js/:

clipboard.png

however, there is a problem with the number of coverage, good side


solved--
but unexpectedly no one answered, so how did you solve it


?


how to solve this problem? Big brother, I am also like this


1. To check whether babelrc has env--test configuration, you need to use the "istanbul" plug-in
2.karma.conf.js webpack option to see whether webpack.config.js uses the babel-loader
3.karma.conf.js reporters option to add 'converage'

.
Menu