📝 Enforce using toContain().
all config.
🔧 This rule is automatically fixable by the --fix CLI option.
This rule triggers a warning if toBe(), toEqual() or toStrickEqual() is used to assert object inclusion in an array.
The following patterns are considered warnings:
expect(a.includes(b)).toBe(true)
expect(a.includes(b)).toEqual(true)
expect(a.includes(b)).toStrictEqual(true)The following patterns are not considered warnings:
expect(a).toContain(b)