Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing: ignoreFiles regex input has the file extensions stripped off #296

Closed
bugeats opened this issue Aug 16, 2023 · 0 comments · Fixed by #301
Closed

Confusing: ignoreFiles regex input has the file extensions stripped off #296

bugeats opened this issue Aug 16, 2023 · 0 comments · Fixed by #301

Comments

@bugeats
Copy link

bugeats commented Aug 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants