in jest testing
toBe - it will check value and type also like ===
toEqual - it will only compare values, not type like ==
Ex -
tempObj ={success: true};
expect(tempObj).toBe({success: true}} // false
expect(tempObj).toEqual({success: true}} // true