Open vitoravelino opened 6 years ago
Also, I passed --reporter=html
to check the output in the browser and when I opened the vue file I got:
Unable to lookup source: /home/vitoravelino/Workspace/others/vue-test-utils-mocha-webpack-example/src/components/MessageToggle.vue?d4b1857c(ENOENT: no such file or directory, open '/home/vitoravelino/Workspace/others/vue-test-utils-mocha-webpack-example/src/components/MessageToggle.vue?d4b1857c')
I had the same problem! I found the issue answered here in the nyc issue page. Looks like if you change devtool: 'inline-cheap-module-source-map'
to devtool:'eval'
in webpack.config.js it works! Although, this is not what mocha-webpack recommends in their documentation it seems to be a good workaround. The inline-cheap-module-source-map seems to be incompatible with .vue files.
Thanks for the tip, @dbschwartz. I'll check that out later!
No prob @vitoravelino! It's actually devtool
not dev
. My bad. I fixed the original post
Hello there!
I pulled the code, ran
npm install
andList.vue
does not appear in the coverage report files. Is that expected?