📝 Enforce using toHaveLength().
all config.
🔧 This rule is automatically fixable by the --fix CLI option.
// bad
expect(files.length).toStrictEqual(1)
// good
expect(files).toHaveLength(1)📝 Enforce using toHaveLength().
all config.
🔧 This rule is automatically fixable by the --fix CLI option.
// bad
expect(files.length).toStrictEqual(1)
// good
expect(files).toHaveLength(1)