Optional
afterEach?: GlobalPropertyHookFunctionSpecify a function that will be called after each execution of a property.
It behaves as-if you manually called afterEach
method on all the properties you execute with fast-check.
The function will be used for both fast-check#property and fast-check#asyncProperty.
This global override should never be used in conjunction with asyncAfterEach
.
Optional
asyncAfterEach?: GlobalAsyncPropertyHookFunctionSpecify a function that will be called after each execution of an asynchronous property.
It behaves as-if you manually called afterEach
method on all the asynchronous properties you execute with fast-check.
The function will be used only for fast-check#asyncProperty. It makes synchronous properties created by fast-check#property unable to run.
This global override should never be used in conjunction with afterEach
.
Optional
asyncBeforeEach?: GlobalAsyncPropertyHookFunctionSpecify a function that will be called before each execution of an asynchronous property.
It behaves as-if you manually called beforeEach
method on all the asynchronous properties you execute with fast-check.
The function will be used only for fast-check#asyncProperty. It makes synchronous properties created by fast-check#property unable to run.
This global override should never be used in conjunction with beforeEach
.
Optional
baseSize?: SizeDefine the base size to be used by arbitraries.
By default arbitraries not specifying any size will default to it (except in some cases when used defaultSizeToMaxWhenMaxSpecified is true). For some arbitraries users will want to override the default and either define another size relative to this one, or a fixed one.
Optional
beforeEach?: GlobalPropertyHookFunctionSpecify a function that will be called before each execution of a property.
It behaves as-if you manually called beforeEach
method on all the properties you execute with fast-check.
The function will be used for both fast-check#property and fast-check#asyncProperty.
This global override should never be used in conjunction with asyncBeforeEach
.
Optional
defaultSizeToMaxWhenMaxSpecified?: booleanWhen set to true
and if the size has not been defined for this precise instance,
it will automatically default to "max"
if the user specified a upper bound for the range
(applies to length and to depth).
When false
, the size will be defaulted to baseSize
even if the user specified
a upper bound for the range.
Type describing the global overrides