Closed JZ-at-TP closed 7 years ago
+1. Same here. The code coverage report shows 100% with 0/0 checked for statements, branches, functions and lines.
This was fixed in the karma coverage reporter in this PR: https://github.com/mattlewis92/karma-coverage-istanbul-reporter/issues/2
I'm trying to get coverage tests for my vuejs project. My webpack2 rules look like this...
My karma config looks like this.
The istanbul-instrumenter-loader is used specifically for the javascript section of the .vue files as a postLoader. When I run karma I'm getting a report but its just an error
Error: Unable to lookup source: /Users/user/Development/app/src/components/background.vue?094fc1b7(ENOENT: no such file or directory, open '/Users/user/Development/app/src/components/background.vue?094fc1b7')
, note the has on the end of the filename. Is there something I'm doing wrong?