• Tests for partial deep equality between the actual and expected parameters. "Deep" equality means that the enumerable "own" properties of child objects are recursively evaluated also by the following rules. "Partial" equality means that only properties that exist on the expected parameter are going to be compared.

    This method always passes the same test cases as assert.deepStrictEqual(), behaving as a super set of it.

    Parameters

    • actual: unknown
    • expected: unknown
    • Optionalmessage: string | Error

    Returns void

    v22.13.0