plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.2k stars 43 forks source link

Passing files as ignored doesn't work #117

Open AleksandraRataj opened 1 year ago

AleksandraRataj commented 1 year ago

Version:

"type-coverage": "^2.24.1"
"typescript": "4.4.4"
"typescript-coverage-report": "^0.7.0"

Environment: macOS

Hi! :) Passing files to ignore that way: --ignore-files "demo1/*.ts" --ignore-files "demo2/foo.ts" doesn't work for me. Only the last argument is ignored, but the previous are still in the report. Should I specify the files to ignore in another way?

plantain-00 commented 1 year ago

I cannot reproduce it. you can debug it locally at node_modules/type-coverage/packages/core/dist/core.js#L42

srsudar commented 9 months ago

I also see this. I can work around it with globbing patterns, eg --ignore-files "foo/{bar,baz}/*.js", but I can't figure it out when there isn't overlap between the dirs like that.