flexpect - v0.9.0
    Preparing search index...

    Interface ToHaveAspectRatioOptions

    Options for the toHaveAspectRatio matcher.

    interface ToHaveAspectRatioOptions {
        tolerancePercent?: number;
    }
    Index

    Properties

    tolerancePercent?: number

    The allowed tolerance for the aspect ratio comparison, expressed as a percentage.

    This defines how much the actual aspect ratio can differ from the expected ratio while still passing the assertion.

    For example, a tolerancePercent of 5 means the actual ratio can be within ±5% of the expected ratio.

    If omitted, the default tolerance is 0, requiring an exact match.

    0