You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule prefer-screen-queries is throwing false positives when a query is called from within util:
import{render,within,screen}from'react-testing-library';// ...render(<SomeComponent/>);constsection=screen.getByTestId('some-id');// this is fine but the rule complains about it.constsubmit=within(section).getByText(/submit/i);