flexpect - v0.9.0
    Preparing search index...

    Interface ToBeInsideOptions

    Options for the toBeInside matcher.

    interface ToBeInsideOptions {
        tolerancePercent?: number;
    }
    Index

    Properties

    tolerancePercent?: number

    Allowed tolerance for the containment check, expressed as a percentage (%) of the container's width.

    This value defines the margin by which the target element can extend beyond the container's horizontal boundaries while still being considered "inside". For example, a tolerancePercent of 5 allows the element to exceed the container's width by up to 5% without failing the assertion.

    If omitted, the default is 0, meaning strict containment with no allowed overflow.

    0