Skip to content

Commit

Permalink
feat(TextMatch): upgrade dom-testing-library
Browse files Browse the repository at this point in the history
- 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)

Closes #76

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.
  • Loading branch information
Kent C. Dodds committed May 6, 2018
1 parent cb221de commit 898477d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,7 @@
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
"license": "MIT",
"dependencies": {
"dom-testing-library": "^1.10.0",
"dom-testing-library": "^2.0.0",
"wait-for-expect": "^0.5.0"
},
"devDependencies": {
Expand Down

1 comment on commit 898477d

@alexkrolick
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Types need an update now 馃槃

Please sign in to comment.