The coverage of the Vuejs unit test contains other dependent code for the file under test

problem description

use Mocha+Karma+Chai+Webpack for unit testing of Vue, Istanbul output coverage report.
coverage contains the code on which the file under test depends;

related codes

in the file under test

   

can this situation be solved through configuration, or can it only be so?

Aug.30,2021
Menu