Skip to main content

@rbxts/expect > ExpectConfig > collapseLength

ExpectConfig.collapseLength property

The length at which collapsible values become collapsed variants.

Signature:

collapseLength: number;

Remarks

When actual/expected values are beyond this length in size (as strings), they are converted into "collapsed" versions of themselves.

Arrays are collapsed to [...] Objects are collapsed to {...} Strings are collapsed to "..." And everything else is collapsed to '...'