Skip to content

Why does fast-check expect a boolean return value rather than using errors like jest & co? #3055

Answered by dubzzz
jasikpark asked this question in Q&A
Discussion options

You must be logged in to vote

Boolean value returns has been there to be aligned with the API provided by jsverify (another PBT framework for JS). The recommendation is to go for expect but both returning boolean or void works so for some very concise cases returning boolean values can just be seen as a very short way to write the property.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jasikpark
Comment options

Answer selected by jasikpark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants