Skip to main content

Function: configureGlobal()

configureGlobal(parameters): void

Defined in: packages/fast-check/src/check/runner/configuration/GlobalParameters.ts:109

Define global parameters that will be used by all the runners

Parameters

ParameterTypeDescription
parametersGlobalParametersGlobal parameters

Returns

void

Example

fc.configureGlobal({ numRuns: 10 });
//...
fc.assert(
fc.property(
fc.nat(), fc.nat(),
(a, b) => a + b === b + a
), { seed: 42 }
) // equivalent to { numRuns: 10, seed: 42 }

Remarks

Since 1.18.0