Confusing: ignoreFiles regex input has the file extensions stripped off
bugeats opened this issue · comments
I was trying to ignore a vitest.config.ts
reporting false positives.
This works:
--ignoreFiles="^.*\.config$"
This does not:
--ignoreFiles="^.*\.config\.ts$"
I had to trawl through the source to figure out that the file paths that are passed to the regex have the extensions stripped off. Maybe there's a good reason for it, but I found it confusing and unexpected.