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.
I was trying to ignore a
vitest.config.ts
reporting false positives.This works:
This does not:
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.