Extend default exclusion patterns?
When using --exclude, the argument passed overrides the default exclusions. What I want to do is to extend the defaults, so I don't have to specify them manually.
Is there a way to do this?
I don't know if there is a way to do this today, but this sounds like a good feature request. We should look at nyc, which c8 is based on, and see if they figured out a way to support this.
I came upon this issue looking to do the same thing, the nyc documentation mentions that exclude patterns can be negated by prefixing with !, but it seems to work for include as well.
In my case it was sufficient to add a negated path to the include array like so:
{
"include": ["**/*.ts", "**/*.tsx", "!**/*.stub.ts"]
}