You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using c8 for test coverage in a Vite/Vue project and encountered an issue while testing a .vue file with a <style> tag.
When having a <style> tag with content, coverage report indicate only 1 line, and 100% coverage.
Removing the tag content causes the coverage report to display correct values.
(Running test with istanbul does not raise this issue.)
This one is weird. There seems to be some flakiness in how sourcemaps load. I can reproduce the issue about 70% times, but rest of the runs work fine. When coverage is incorrect, the sourcemaps seem to be missing source and sourceContent.
Describe the bug
Hi,
I'm using c8 for test coverage in a Vite/Vue project and encountered an issue while testing a
.vue
file with a<style>
tag.When having a
<style>
tag with content, coverage report indicate only 1 line, and 100% coverage.Removing the tag content causes the coverage report to display correct values.
(Running test with
istanbul
does not raise this issue.)Result:
Statements : 100% ( 1/1 )
Branches : 100% ( 0/0 )
Functions : 100% ( 0/0 )
Lines : 100% ( 1/1 )
Expected Result:
Statements : 91.66% ( 11/12 )
Branches : 0% ( 0/1 )
Functions : 100% ( 0/0 )
Lines : 91.66% ( 11/12 )
Reproduction
Here is a repository to reproduce : https://github.com/Polluux/demo-c8-issues
(Note : This repository contains multiple issues for c8)
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: