@wpazderski/playwright-utils
    Preparing search index...

    Assymmetric matcher that compares floating point numbers for approximate equality. Use it inside expect(value).toEqual(expected) to perform pattern matching. When just comparing two numbers, prefer expect(value).toBeCloseTo(expected[, numDigits]).

    Usage

    expect({ prop: 0.1 + 0.2 }).not.toEqual({ prop: 0.3 });
    expect({ prop: 0.1 + 0.2 }).toEqual({ prop: expect.closeTo(0.3, 5) });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    $$typeof: symbol = ...

    Symbol to identify asymmetric matcher.

    inverse: boolean

    If true, the matcher will check for non-matching values.

    sample: number

    The sample value to match against.

    Methods