@wpazderski/playwright-utils
    Preparing search index...
    • Ensures that value is an instance of a class. Uses instanceof operator.

      Usage

      expect(page).toBeInstanceOf(Page);

      class Example {}
      expect(new Example()).toBeInstanceOf(Example);

      Parameters

      • internalOptions: MatcherInternalOptions

        Internal options that provide extra context for the matcher.

      • received: any

        Received value.

      • expected: Function

        The class or constructor function.

      Returns void