vuejs / vue-jest

Jest Vue transformer
MIT License
746 stars 157 forks source link

Single uncovered line flagged by Vue `template` #559

Open squaredindex opened 7 months ago

squaredindex commented 7 months ago

Running into this issue with UTs flagging Vue template tags as an "Uncovered line" in component files.

When I change the jest config coverageProvider from its current v8 to babel it will change the number of these uncovered lines and it will change which components it flags as having them, but it doesn't prevent the issue and using babel also causes other real issues to not show up, so it's not a viable solution from what I can tell.

1

2

3

KaiCMueller commented 3 months ago

@squaredindex Have you found a solution for this? I am having the same issue with a single component in my application.

squaredindex commented 3 months ago

@KaiCMueller No, unfortunately we never found a solution.