Closed
Description
prefer-screen-queries
is not taken into account that the user can do this:
const utils = render(<Component />);
utils.container.querySelector('div');
This kind of selector can lead the user to a bad pattern of tests according to the testing-library.
I don't understand eslint under the hood, but I propose to change the prefer-screen-queries
to take the snippet above into account as a bad pattern.
What do you guys think about that?