-
Notifications
You must be signed in to change notification settings - Fork 234
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
False-positive jest/no-disabled-tests #775
Comments
No, because
Correct - it's because our matcher is incorrect, I'll have a PR up shortly. |
Would it be possible that the plugin reads jest.config.js to know which files it should consider? |
We do hope to read the config one day to enhance the rules - see here for why that's currently not possible. However, I don't think we'd do that for determining what files to run on, as that is exactly what you're meant to be using |
I‘m not completely sure how I should use overrides here, currently I‘m just using an |
That's what exactly Here's one of my projects that uses |
Ah nice, thanks! The first link above to overrides confused me. |
No problem! it is currently a bit confusing - iirc the new config system that'll be coming over the next year or so includes refactoring the config to be "override based" which should be better - so instead of having |
In a non-test file (trackingXiti.ts), I have a function like this:
The rule warns about the line with the
xitiViewMap
function, probably because it starts withxit
.*.test.{js,tsx?}
files?xit(
and notxitSomethingElse(
The text was updated successfully, but these errors were encountered: