Skip to content

New rule: no queryBy for checking existence #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
benmonro opened this issue Mar 17, 2020 · 1 comment
Closed

New rule: no queryBy for checking existence #91

benmonro opened this issue Mar 17, 2020 · 1 comment
Labels
new rule New rule to be included in the plugin

Comments

@benmonro
Copy link
Member

The following should report an error

expect(queryByText("Foo")). toBeInTheDocument()

As it does not give good errors when it fails

@Belco90
Copy link
Member

Belco90 commented Mar 17, 2020

Closing in favour of including it as part of #90

@Belco90 Belco90 closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new rule New rule to be included in the plugin
Projects
None yet
Development

No branches or pull requests

2 participants