[Vuejs]-.vue file not found in the coverage with istanbul, mocha and vue-test-utils in vuejs

0👍

When you test a *.vue file, the directory of this file diplayed in the corevage list.

EDIT : or add

module.exports = {
  chainWebpack: (config) => {
    if (process.env.NODE_ENV === 'test') {
      config.merge({
        target: 'node',
        devtool: 'eval'
    }
  },
}

in your vue.config.js

source : https://github.com/vuejs/vue-test-utils-mocha-webpack-example/issues/3

Leave a comment