expect(subject).toEqual(expect.objectContaining({})) false positive code example Example: expect any function jest expect(something).toEqual(expect.any(Function))