-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Cannot configure eslint-plugin-jest
's expect-expect
and no-standalone-expect
rules to recognize test.prop
#4474
Comments
eslint-plugin-jest
's expect-expect
rule to recognize test.prop
eslint-plugin-jest
's expect-expect
and no-standalone-expect
rules to recognize test.prop
Realized that |
Indeed probably worth proposing that as an improvement of the eslint rules. 🤔 |
By the way, while |
Did you want me to file the issue or did you want to do it? I'm good either way |
I prefer if you open it. You have more context on what you tried |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🐛 Bug Report
I used to configure
eslint-plugin-jest
'sexpect-expect
rule like so:And it would work for
fast-check
'stestProp
function. However, now thattest.prop
is preferred andtestProp
is deprecated, I tried switching to:But unfortunately this doesn't work. Probably because with
test.prop
the test function is not actually contained within the parentheses oftest.prop(...)
and is instead contained within the parentheses of an anonymous function returned bytest.prop
.I understand that
test.prop
is attempting to matchtest.each
so maybe what we need to do is make a feature request foreslint-plugin-jest
to support configuringtest.each
-like functions.What do you think?
The text was updated successfully, but these errors were encountered: