Code Coverage Not Working #1838
Replies: 3 comments 2 replies
-
This was due to other areas of my vite.config.ts, and is now resolved. This can be closed. |
Beta Was this translation helpful? Give feedback.
-
No worries, So I had this config:
I can't remember when I needed the process.env bit at the top, and if I removed this and the
|
Beta Was this translation helpful? Give feedback.
-
Hi I have the issue where no matter what I do no coverage is generated. I too was doing a similar approach with my process env. However when making the changes listed above there is no change in my outcome. EDIT |
Beta Was this translation helpful? Give feedback.
-
Before I start, I understand that code coverage is handled by c8, but I thought that there might be something I'm doing wrong in my config.
I am running Vue 3.2.25, Vite 3.0.5, Vitest 0.21.1
node v16.15.1
I have 118 tests in my project, and all of them pass, but my coverage is doesn't show at all. I know questions have been asked like this before, but I've not found the answer.
I have this in my
vite.config.js
:If I uncomment the
//all
, then it just shows all my files with 0 lines covered:I know I'll probably need to ask in the c8 repo, but any idea's where I'm going wrong?
Beta Was this translation helpful? Give feedback.
All reactions