Skip to content

Add option for cleaner error reporting in fc.assert #6035

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

You must be logged in to vote

Thanks for having reported this issue. If I'm not wrong this is the exact purpose of the parameters called reporter and asyncReporter that you can provide to the assert function provided by fast-check. If you want your reporter to be used everywhere (ie for all calls to assert) you can configure it globally by passing it to configureGlobal.

More details: here.

Hope it solves your issue 👍

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dubzzz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #6013 on July 05, 2025 13:07.