Cannot configure eslint-plugin-jest
's expect-expect
and no-standalone-expect
rules to recognize test.prop
#4474
Labels
eslint-plugin-jest
's expect-expect
and no-standalone-expect
rules to recognize test.prop
#4474
🐛 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: