Skip to content

feat(TextMatch): upgrade dom-testing-library #2

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
wants to merge 1 commit into from

Conversation

kentcdodds
Copy link
Member

  • Changes queries to default to exact string matching
  • Can opt-in to fuzzy matches by passing { exact: true } as the last arg
  • Queries that search inner text collapse whitespace
    (queryByText, queryByLabelText)

BREAKING CHANGE: Strings are considered to be an exact match now. You can opt-into fuzzy matching, but it's recommended to use a regex instead.

- Changes queries to default to exact string matching
- Can opt-in to fuzzy matches by passing { exact: true } as the last arg
- Queries that search inner text collapse whitespace
  (queryByText, queryByLabelText)

BREAKING CHANGE: Strings are considered to be an exact match now. You can opt-into fuzzy matching, but it's recommended to use a regex instead.
@dfcook
Copy link
Collaborator

dfcook commented May 10, 2018

I'd manually done this change before I saw this PR, sorry.

@dfcook dfcook closed this May 10, 2018
afontcu pushed a commit that referenced this pull request Jul 17, 2019
…ons-test-example

Feature/add additional options test example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants