Coverage issue in vue files when upgraded with version 1.1.3 or 1.2.0 #4991
roshnimridha04
started this conversation in
General
Replies: 2 comments 11 replies
-
Did you update anything else than Vitest? Check if your lockfile contains changes to packages like Vue Vite plugin, vue loader or similar. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Few more information that I can provide after investigating is our code coverage was working all fine when we used "@vitejs/plugin-vue": "^4.5.2", After that we directly upgraded to vitest and v8-coverage to 1.1.3 and "@vitejs/plugin-vue": "^5.0.2" and here onwards the coverage started showing weird issues. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After I have upgraded to latest, Iam seeing weird issues in coverage. Before the upgrade it was all fine. For some files its still shows the coverage fine. but for some if I move the script after my template as shown below then it shows correctly else it shows not get covered:
<script setup lang="ts"> //my script here </script>/* v8 ignore start /
my template here
/ v8 ignore stop */
Please let me know why is this happening after the upgrade.
Beta Was this translation helpful? Give feedback.
All reactions