Compares contents of the value with contents of
expected,
performing "deep equality" check. Allows extra properties to be present in the value, unlike
expect(value).toEqual(expected),
so you can check just a subset of object properties.
When comparing arrays, the number of items must match, and each item is checked recursively.
Compares contents of the value with contents of
expected, performing "deep equality" check. Allows extra properties to be present in the value, unlike expect(value).toEqual(expected), so you can check just a subset of object properties.When comparing arrays, the number of items must match, and each item is checked recursively.
Usage