-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
When using this plugin and adding // #v-ifdef DEV and // #v-endif comments in my code, vitest marks all code as 100% covered (istanbul).
If I remove the directives, the coverage works again:
Similar issues can be found at:
- Vite plugin breaks vitest coverage report unplugin-vue-components#333
- this plugin destroy sourcemap. unplugin-vue-components#219 (maybe related, this is referred to in the previous link)
This should be easily reproducible.
Here is a minimal reproduction: https://stackblitz.com/edit/vitest-dev-vitest-4tlh7n?file=src%2Findex.ts
Is there a workaround to solve this problem?
Metadata
Metadata
Assignees
Labels
No labels

