Jest · Module
objectContaining
expect.objectContaining checks that an object has selected properties. It allows extra properties and supports recursive matching.
Last updated
Syntax
expect.objectContaining(object)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expecttoEqualtoHaveBeenCalledWithexpect.anyexpect.anythingexpect.not.objectContaining