Skip to main content

Function: noShrink()

noShrink<T>(arb): Arbitrary<T>

Defined in: packages/fast-check/src/arbitrary/noShrink.ts:37

Build an arbitrary without shrinking capabilities.

NOTE: In most cases, users should avoid disabling shrinking capabilities. If the concern is the shrinking process taking too long or being unnecessary in CI environments, consider using alternatives like endOnFailure or interruptAfterTimeLimit instead.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
arbArbitrary<T>The original arbitrary used for generating values. This arbitrary remains unchanged, but its shrinking capabilities will not be included in the new arbitrary.

Returns

Arbitrary<T>

Remarks

Since 3.20.0