How I can merge two different coverage folder? #3744
-
I have a few packages and each of them has own coverage folder. I want to merge them Btw, I am using Istanbul |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
If the packages are in a monorepo you should use Vitest's workspaces. It will merge the coverage reports out-of-the-box for whole project. If these are completely separate projects and for some reason you want to merge the coverage reports, you could use |
Beta Was this translation helpful? Give feedback.
If the packages are in a monorepo you should use Vitest's workspaces. It will merge the coverage reports out-of-the-box for whole project.
If these are completely separate projects and for some reason you want to merge the coverage reports, you could use
nyc
for it, e.g.nyc merge
: https://github.com/istanbuljs/nyc#combining-reports-from-multiple-runs