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'

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be7576-305b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be7576-305b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?