Jest provides many built-in matchers for different assertion types:
Equality matchers:
toBe(): Exact equality (Object.is)toEqual(): Deep equalitytoStrictEqual(): Strict deep equalityTruthiness matchers:
toBeTruthy(): Truthy valuestoBeFalsy(): Falsy valuestoBeNull(): Specifically nulltoBeUndefined(): Specifically undefinedNumber matchers:
toBeGreaterThan(): Greater thantoBeCloseTo(): Floating point numbersString matchers:
toMatch(): Regular expressionstoContain(): Substring matchingArray/Object matchers:
toContain(): Array contains itemtoHaveProperty(): Object has property