all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
// bad
expect(foo).toBe(true)
expectTypeOf(foo).toBe(true)
// good
expect(foo).toBeTruthy()
expectTypeOf(foo).toBeTruthy()
all
config.
🔧 This rule is automatically fixable by the --fix
CLI option.
// bad
expect(foo).toBe(true)
expectTypeOf(foo).toBe(true)
// good
expect(foo).toBeTruthy()
expectTypeOf(foo).toBeTruthy()