Closed spence-novata closed 1 month ago
@spence-novata Make sure your test.coverage.enabled
is set to true
in vite.config.ts
.
This did the trick thank you
You shouldn't need to change your config for coverage to work
You shouldn't need to change your config for coverage to work
However that's not the case for the extension as it requires us to enable the coverage in our config file. This was first found here and receives np further response from the team.
You shouldn't need to change your config for coverage to work
However that's not the case for the extension as it requires us to enable the coverage in our config file. This was first found here and receives np further response from the team.
This is a bug in the extension, not a feature. After that comment, there were bug fixes that removed that requirement (https://github.com/vitest-dev/vscode/releases/tag/v0.10.0). If it's still needed in some cause, this is a bug.
You shouldn't need to change your config for coverage to work
However that's not the case for the extension as it requires us to enable the coverage in our config file. This was first found here and receives np further response from the team.
This is a bug in the extension, not a feature. After that comment, there were bug fixes that removed that requirement (https://github.com/vitest-dev/vscode/releases/tag/v0.10.0). If it's still needed in some cause, this is a bug.
That's new to me. Let me test that again and raise a bug if needed.
Describe the bug
I don't believe this is a duplicate or regression of https://github.com/vitest-dev/vscode/issues/372
When running in a monorepo I'm not getting any coverage reports. If I open vscode on the individual package I get coverage fine. But in a monorepo nothing.
The test itself seems to pass (or fail) correctly. There are no errors in the Output. I pulled the path to the reportsDirectory from the output and that directory doesn't exist.
Reproduction
https://github.com/spence-novata/vitest-monorepo-coverage-repro
Output
Version
0.10.7
Validations