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
Source:stackexchange.com