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

    Assymmetric matcher that matches a received string that in turn matches the expected pattern. Use it inside expect(value).toEqual(expected) to perform pattern matching.

    Usage

    expect('123ms').toEqual(expect.stringMatching(/\d+m?s/));

    // Inside another matcher.
    expect({
    status: 'passed',
    time: '123ms',
    }).toEqual({
    status: expect.stringMatching(/passed|failed/),
    time: expect.stringMatching(/\d+m?s/),
    });

    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: RegExp

    The sample value to match against.

    Methods