Skip to content

Add linter to prefer toHaveLength

Description

We've been prefering toHaveLength and those kind of matchers vs. a unsemantive toEqual or toBe. There might be a trivial linter here if we can detect a .length in the expect before the matcher 🤔

/cc @ntepluhina

Edited by 🤖 GitLab Bot 🤖