flexpect - v0.9.0
    Preparing search index...

    Interface ToBeHorizontallyAlignedWithOptions

    Options for the toBeHorizontallyAlignedWith matcher.

    interface ToBeHorizontallyAlignedWithOptions {
        tolerancePercent?: number;
    }
    Index

    Properties

    tolerancePercent?: number

    Allowed tolerance for the horizontal alignment difference, expressed as a percentage (%) of the container element's width.

    The matcher passes if the horizontal difference between the aligned edges or points of the target and container is within this percentage.

    For example, a tolerancePercent of 5 allows the elements to be misaligned by up to 5% of the container's width without failing the assertion.

    If omitted, the default tolerance is 0, requiring exact alignment.

    0