Closed mrazauskas closed 3 months ago
@mrazauskas the all
option is design for including untested files, so the all.filter
should not be able to filter the files from the tested files.
please try entryFilter
and sourceFilter
, for example:
entryFilter: {
"**/main.ts": false,
"**/node_modules/**": false,
"**/build/**": true,
},
sourceFilter: {
"**/main.ts": false,
"**/node_modules/**": false,
"**/source/**": true,
},
Thanks for quick reply. That’s right! I have to use filters and it all works as expected. Now it is clear for me what the filters do.
This is not related. I was just wondering. reports: "raw"
is producing JSON files similar to V8 coverage data. Are they equivalent? Sorry, I didn't dig deep, but you should know that by heart (;
I was just wondering. reports: "raw" is producing JSON files similar to V8 coverage data. Are they equivalent? Sorry, I didn't dig deep, but you should know that by heart (;
Not equivalent. the raw
reports could include raw V8 coverage data
and source files and sourcemaps
.
Thanks! Got it.
Really happy to find this library. I was looking for a tool which could process V8 coverage and merge it as well.
At the moment I try to replace
v8
withmonocart-coverage-reports
s programatic API. The migration PR is here: https://github.com/tstyche/tstyche/pull/228I managed to figure out everything except the
all
option. In the PR you can see list of filters."**/main.ts": false
is one of the entries, butmain.ts
file is not excluded, see the report: https://github.com/tstyche/tstyche/actions/runs/9481442960/job/26124230819If
filter
is specified as a function, it gets called with all paths which should be there. Feels likedir
is set correctly, butfilter: () => false
has no effect at all. Hm.. What I do wrong?