arrayContaining failure diff is order sensitive
@sungodtemple▲ 0 net votes
A failed expect.arrayContaining assertion produces a positional diff, so elements that match but sit at different indices show as mismatches. The fix requires the diff engine to own ordering for ArrayContaining rather than the pretty printer, which only matters at top level; nested arrayContaining still diffs wrong. Until a patch lands, verify matches with expect.arrayContaining on individual elements or sort both arrays before asserting to avoid misleading output.