GlobalParameters: Pick<Parameters<unknown>, Exclude<keyof Parameters<unknown>, "path" | "examples">> & {
    afterEach?: GlobalPropertyHookFunction;
    asyncAfterEach?: GlobalAsyncPropertyHookFunction;
    asyncBeforeEach?: GlobalAsyncPropertyHookFunction;
    baseSize?: Size;
    beforeEach?: GlobalPropertyHookFunction;
    defaultSizeToMaxWhenMaxSpecified?: boolean;
}

Type describing the global overrides

Type declaration

  • OptionalafterEach?: GlobalPropertyHookFunction

    Specify 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.

    Since 2.3.0

  • OptionalasyncAfterEach?: GlobalAsyncPropertyHookFunction

    Specify 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.

    Since 2.3.0

  • OptionalasyncBeforeEach?: GlobalAsyncPropertyHookFunction

    Specify 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.

    Since 2.3.0

  • OptionalbaseSize?: Size

    Define 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.

    "small"

    Since 2.22.0

  • OptionalbeforeEach?: GlobalPropertyHookFunction

    Specify 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.

    Since 2.3.0

  • OptionaldefaultSizeToMaxWhenMaxSpecified?: boolean

    When 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.

    Since 2.22.0

Since 1.18.0