coverage-istanbul-loader
coverage-istanbul-loader copied to clipboard
There are some uncovered lines for Vue 3 templates with Typescript
There is a testing extension for Quasar Framework that introduces code-coverage support for Cypress e2e testing: link
I created a Pull Request for introducing Webpack code coverage support for this library: link
@maiolica highlighted that there some issues with the covered lines for .vue template files but there aren't with .ts files.
I've looked into it and I've had the same results in my template files.
I used the following webpack loader rule to instrument the code:
{
test: /\.(js|ts|vue)$/,
loader: '@jsdevtools/coverage-istanbul-loader',
options: { esModules: true },
enforce: 'post',
exclude: [/\.(e2e|spec)\.(js|ts)$/, /node_modules/, /\.quasar/],
}
What could be the problem? Do I need to add an another loader to handle .vue files better?
You can test it when you follow the instructions from the PR.
- Pull quasar-testing repo.
- Checkout
devbranch. - yarn install in the root directory.
- Follow the instructions from Other information part of the PR to test cypress e2e coverage.
@JamesMessinger, @rkrauskopf, @Pouja Is there any chance to this issue will be handled in the future? Thank you for the response.