You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fast-check exposes a test.prop function that's invoked similarly to Jest's built-in test.each. However, it doesn't seem like expect-expect and no-standalone-expect's additionalTestBlockFunctions option supports test.each-like function. Probably because the test lambda is passed to an anonymous function instead of test.prop itself (i.e. test.prop(args)(theTestLambda))
Would it be possible to support test.each-like functions?
The text was updated successfully, but these errors were encountered:
Could you give me a small example of test.prop being used? I've never used fast-check and can't find anything about test.prop or testProp so it's hard to triage this 😅
I'm somewhat reserved these days on adding support for this kind of thing because we've got to draw the line in how far we go to support non-jest variations of stuff somewhere but that isn't an outright no.
One thing that comes to mind is globalAliases, but part of the challenge is you're not providing a direct replacement for jest which exposes us to that variation problem: we'd need to be expressing "this is like it.each, but it doesn't otherwise act like it"...
I'll sit on this for a bit and play around with our existing logic when I have a chance to see if it could fit naturally in.
See dubzzz/fast-check#4474
fast-check
exposes atest.prop
function that's invoked similarly to Jest's built-intest.each
. However, it doesn't seem likeexpect-expect
andno-standalone-expect
'sadditionalTestBlockFunctions
option supportstest.each
-like function. Probably because the test lambda is passed to an anonymous function instead oftest.prop
itself (i.e.test.prop(args)(theTestLambda)
)Would it be possible to support
test.each
-like functions?The text was updated successfully, but these errors were encountered: