Nathan H
Nathan H

Reputation: 49411

vscode keeps generating coverage directory

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

Answers (2)

VPR
VPR

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

Jeffrey Bradley
Jeffrey Bradley

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

Related Questions