Replies: 2 comments
-
There was no logic when it was initially added. I think it just what made sense at the time and no one oppose it or noticed it. We don't approve new values added to it because we will remove all these configs in the next major. |
Beta Was this translation helpful? Give feedback.
-
Seeing issues likes this makes me think maybe we should try similar approach as Jest has: https://jestjs.io/docs/configuration#collectcoveragefrom-array It requires user to define |
Beta Was this translation helpful? Give feedback.
-
The default
exclude
pattern isNaturally, by design this cannot cover everything. It has been said that
**/*.config.*
is too broad. OK, interesting opinion.It has also been said that adding new config files to this list will be rejected in favor of using
include
instead, for a whitelist instead of blacklist style pattern. Well that does make sense. But then why mislead users by excluding any config files?Why can't I open a PR for Tailwind to be added to this list, even though I use literally 2 of the tools currently on it, and Tailwind has 5M more weekly downloads than Cypress (literally double)?
If the answer is it's basically deprecated, I understand.
It is very misleading that when running coverage (which copies this config exclude pattern from the main option) all of my vite config files are magically excluded, while my Tailwind file isn't. Disappointingly, it sent me on the wrong search path which ended up in GitHub issues.
Beta Was this translation helpful? Give feedback.
All reactions