eddyerburgh / eddyerburgh/vue-test-utils-ava-example

Coverage with nyc not mapped correctly

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
29
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Related to #1, I can't seem to get the nyc coverage reports working correctly.

In this fork: https://github.com/mdvorscak/vue-test-utils-ava-example I added nyc, partially following https://github.com/avajs/ava/blob/master/docs/recipes/code-coverage.md .

If you checkout the fork and run `npm run unit` you'll see the branch coverage on List.Vue is not correct:
![invalid_branch_coverage](https://user-images.githubusercontent.com/217407/35773836-74e24692-0923-11e8-951a-aa53a4704dd9.png)

This appears to be related to the source map (considering there are no lines 18-20 in the source List.vue)

I've tried a whole bunch of combinations of setups from the ava code coverage recipe, and can't seem to get the coverage working with Vue. Any ideas on how to get the source maps working?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.