Reputation: 49411
I don't know what changed recently, but every time I open a folder in vscode, even without running anything (just looking at the files), a coverage folder is generated.
What happened? How do I stop that?
Upvotes: 9
Views: 1549
Reputation: 43
In my case:
I had a test config file in my project: jest.config.json (nestjs project), and I had a coverageDirectory variable to indicate where is the coverage folder. I checked that, and I had a different path where the coverage folder didn't exits and this is the reason why my coverage folder was created.
:)
Upvotes: 0
Reputation: 696
I was having the same issue and it seems to be a side effect of Mocha sidebar extension on my machine. After disabling it, I am no longer getting a coverage directory created.
Upvotes: 21