@wpazderski/playwright-utils
    Preparing search index...
    • Ensures that string value matches a regular expression.

      Usage

      const value = 'Is 42 enough?';
      expect(value).toMatch(/Is \d+ enough/);

      Parameters

      • internalOptions: MatcherInternalOptions

        Internal options that provide extra context for the matcher.

      • received: string

        Received value.

      • expected: string | RegExp

        Regular expression to match against.

      Returns void