Jest · Module
arrayContaining
expect.arrayContaining(array) checks that a received array contains every element in the expected array. Extra elements in the received array are allowed.
Last updated
Syntax
expect.arrayContaining(array)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expect.not.arrayContainingexpect.objectContainingexpect.stringMatchingexpecttoEqualtoHaveBeenCalledWithtoMatchObject