istanbuljs/nyc

Coverage for Single-File Vue Components Not Found

開放

#718 建立於 2017年11月8日

 (12 則留言) (9 個反應) (0 位負責人)JavaScript (362 個分叉)batch import
Great First Contributionbughelp wantedhigh-prioritytriaged

倉庫指標

星標
 (5,766 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南