[Vuejs]-Get Incorrect test coverage during Vue.js unit test

0👍

This should be possible by affecting the ‘preprocessor’ entry in your karma conf : only files matching this will be monitored for coverage.

See following issue > https://github.com/karma-runner/karma-coverage/issues/13

In your case something like

preprocessor: { 'src/!(util)/**/*.js' : 'coverage' }

should do the trick

Leave a comment