jest object containing

JavaScript
expect(parseTime('12:54')).toEqual(expect.objectContaining({ hours: 12, minutes: 54}))expect(something).toEqual(expect.any(Function))
Source

Also in JavaScript: