forked from testing-library/react-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update getByText docs (testing-library#123)
Closes testing-library#122 **What**: `getByText` section in the readme. **Why**: The current example is not accurate. **How**: Since the `exact` option is true by default, I use a regular exception with ignore case to find the desired element by text. **Checklist**: - [X] Documentation - [ ] Tests N/A - [X] Ready to be merged - [X] Added myself to contributors table
- Loading branch information
1 parent
4cf93d2
commit fadab1e
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters