Skip to content
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

feat: new rule prefer-presence-queries #98

Merged
merged 10 commits into from
Mar 28, 2020
Prev Previous commit
Next Next commit
test(prefer-presence-queries): findBy typo
  • Loading branch information
Belco90 committed Mar 28, 2020
commit 7605f2e3ae74e2cd0fc05a29c3df4939386b20e1
2 changes: 1 addition & 1 deletion docs/rules/prefer-presence-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test('some test', async () => {
expect(screen.queryByText('loading')).toBeFalsy();

// `findBy*` queries are out of the scope for this rule
const button = await screen.getByText('submit');
const button = await screen.findByText('submit');
expect(button).toBeInTheDocument();
});
```
Expand Down