Open Eccentris opened 6 years ago
I see similar things. It seems for me that if I run with source maps it's usually fine but when I run without source maps I get some pretty random stuff highlighted as covered or not covered. Although I'm using Angular.
I'm running vue unittests using karma, phantomjs, jasmine and vue/test-utils. The unittests run fine and as expected. However, the coverage seems to be off. I am for example triggering button clicks and expect the functions that are called from that button click to be covered, but they aren't. Instead really random stuff like which type a prop is (String, for example) gets covered. I'm not sure if this is an issue with karma-coverage or if I'm using it wrong somehow. All suggestions are appreciated :). My karma.conf.js looks like this:
And my package.json like this