Skip to content
masterclass Buddy

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.

Subscribe
  • expect.not.arrayContaining
  • expect.objectContaining
  • expect.stringMatching
  • expect
  • toEqual
  • toHaveBeenCalledWith
  • toMatchObject

Source: Expect · Jest. Checked 2026-11-03.