objectcontaining
Objectcontaining, commonly seen in testing libraries as objectContaining, refers to a matcher that verifies an actual object includes at least the properties and values specified by an expected object. It enables partial deep matching rather than strict equality, allowing extra properties to exist in the actual object.
In practice, objectContaining is used to assert that a complex object contains a subset of data, without
Usage typically involves comparing an actual value against an expected object pattern. For example, you might
Related concepts include other asymmetric matchers such as arrayContaining for arrays, and toMatchObject or similar helpers