@wpazderski/playwright-utils
    Preparing search index...
    • Compares contents of the value with contents of expected and their types.

      Differences from expect(value).toEqual(expected):

      • Keys with undefined properties are checked. For example, { a: undefined, b: 2 } does not match { b: 2 }.
      • Array sparseness is checked. For example, [, 1] does not match [undefined, 1].
      • Object types are checked to be equal. For example, a class instance with fields a and b will not equal a literal object with fields a and b.

      Usage

      const value = { prop: 1 };
      expect(value).toStrictEqual({ prop: 1 });

      Parameters

      • internalOptions: MatcherInternalOptions

        Internal options that provide extra context for the matcher.

      • received: unknown

        Received value.

      • expected: unknown

        Expected value.

      Returns void