Skip to content
Discussion options

You must be logged in to vote

Can easily be done outside of fast-check with an helper doing:

if (process.env.FAST_CHECK_NUM_RUNS) {
  fc.configureGlobal({ ...fc.readConfigureGlobal(), numRuns: Number(process.env.FAST_CHECK_NUM_RUNS) });
}

You can possibly put this code in the setup script of your test runner. For jest, have a look to jest.setup.js as documented in https://fast-check.dev/docs/tutorials/setting-up-your-test-environment/property-based-testing-with-jest/#recommended-setup.

At the moment, we don't plan to add such capabilities directly within fast-check. The library is supposed to work perfectly well against any runtime including the browser, as such it stays agnostic of the runtime.

Replies: 2 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
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 #5574 on July 05, 2025 13:13.