istanbuljs/nyc

Coverage for Single-File Vue Components Not Found

Open

#718 aperta il 8 nov 2017

Vedi su GitHub
 (12 commenti) (9 reazioni) (0 assegnatari)JavaScript (392 fork)batch import
Great First Contributionbughelp wantedhigh-prioritytriaged

Metriche repository

Star
 (5468 star)
Metriche merge PR
 (Merge medio 1176g 10h) (2 PR mergiate in 30 g)

Descrizione

Expected Behavior

When running nyc with the lcov reporter, I expect there to be an HTML file for viewing the code coverage of my single-file Vue components (files with the .vue extension).

Observed Behavior

The index.html page of the lcov reporter output shows the coverage of my component, but when clicking on it to get a deeper view, the file cannot be found. It's listing the file's path twice:

<rootDir>/src/components/src/components/Menu.vue

When it should be:

<rootDir>/src/components/Menu.vue

Repository that Reproduces Issue

https://github.com/tenkiller/vue_nyc

Forensic Information

Operating System: Mac OS Sierra 10.12.6 Environment Information: output.txt

Guida contributor