Skip to content

docs: fix typos in custom queries section #164

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

Merged
merged 1 commit into from
Jun 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/react-testing-library/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,15 @@ module.exports = {

> **Note**
>
> Generally you should not need to create custom attributes for
> Generally you should not need to create custom queries for
> react-testing-library. Where you do use it, you should consider whether your
> new queries encourage you to test in a user-centric way, without testing
> implementation details.

You can define your own custom queries as described in the example in the
[Helpers API](/doc/dom-testing-library/api-helpers.md) documentation, or via the
[`buildQueries`](/doc/dom-testing-library/api-helpers#buildQueries) helper. Then
you can use the in any render call using the `queries` option. To make the
you can use them in any render call using the `queries` option. To make the
custom queries available globally, you can add them to your custom render method
as shown below.

Expand Down