-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<template>
line is shown as not covered if v-if
used in component (4.6+, 5.0+)
#368
Open
8 of 9 tasks
Labels
bug
Something isn't working
Comments
TheJaredWilcurt
changed the title
May 19, 2024
<template>
line is shown as not covered if v-if
used in component (4.6+)<template>
line is shown as not covered if v-if
used in component (4.6+, 5.x+)
TheJaredWilcurt
changed the title
May 19, 2024
<template>
line is shown as not covered if v-if
used in component (4.6+, 5.x+)<template>
line is shown as not covered if v-if
used in component (4.6+, 5.0+)
I made a new branch in the minrepro with today's date and the latest versions for all dependencies. Issue is still present: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related plugins
Describe the bug
In 4.5.2 and below components with
v-if
would have 100% test coverage, now with 4.6.0 and above they will report the first line of the Vue component (<template>
) as not being covered in tests.I've made the min-repro as simple as possible, it boils down to this:
Example:
Reproduction
https://github.com/TheJaredWilcurt/vite-plugin-vue-min-repro
Steps to reproduce
npm install
npm t
System Info
Tested on Node 20 and 21, Ubuntu 22.04 LTS and also GHA.
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: