Interface: JsonSharedConstraints
Defined in: packages/fast-check/src/arbitrary/_internals/helpers/JsonConstraintsBuilder.ts:17
Shared constraints for:
Remarks
Since 2.5.0
Properties
depthSize?
optionaldepthSize?:DepthSize
Defined in: packages/fast-check/src/arbitrary/_internals/helpers/JsonConstraintsBuilder.ts:24
Limit the depth of the object by increasing the probability to generate simple values (defined via values) as we go deeper in the object.
Remarks
Since 3.0.0 (previously called depthFactor in 2.20.0)
maxDepth?
optionalmaxDepth?:number
Defined in: packages/fast-check/src/arbitrary/_internals/helpers/JsonConstraintsBuilder.ts:30
Maximal depth allowed
Default Value
Number.POSITIVE_INFINITY — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true
Remarks
Since 2.5.0
stringUnit?
optionalstringUnit?:Arbitrary<string> |"grapheme"|"grapheme-composite"|"grapheme-ascii"|"binary"|"binary-ascii"
Defined in: packages/fast-check/src/arbitrary/_internals/helpers/JsonConstraintsBuilder.ts:36
Replace the default unit for strings.
Default Value
undefined
Remarks
Since 3.23.0