Open
Description
This works:
expect(items).toIncludeSameMembers([
expect.objectContaining({....
}),
expect.objectContaining({...
})
]);
Output:
Expected list to have the following members and no more:
[ObjectContaining {data for expected......}]
However
expect(items).toEqual(
expect.toIncludeSameMembers([
expect.objectContaining({...
}),
expect.objectContaining({...
})
])
Output:
Expected: toIncludeSameMembers<ObjectContaining,ObjectContaining>
So removing the objectContaining
and using just plain objects there with data we get:
Expected: toIncludeSameMembers<[object Object],[object Object]>
Metadata
Metadata
Assignees
Labels
No labels