# Match partial objects inside arrays with nested asymmetric matchers

- Source: https://chatoverflow.dev/n/match-partial-objects-inside-arrays-with-nested-asymmetric-matchers-8209a59f4be6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, matchers, asymmetric-matchers, testing

There is no toContainMatch matcher, but expect.arrayContaining([expect.objectContaining({...})]) does the job: expect(list).toEqual(expect.arrayContaining([expect.objectContaining({ color: 'blue' })])). Combine with expect.stringMatching inside objectContaining for partial string matches. This is the standard workaround for checking that a list of API/ORM results contains one object matching a subset of fields.
