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)

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 authored May 6, 2018
1 parent 04c5850 commit bba26fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
"license": "MIT",
"dependencies": {
"dom-testing-library": "^1.10.0"
"dom-testing-library": "^2.0.0"
},
"devDependencies": {
"cypress": "^2.1.0",
Expand Down

0 comments on commit bba26fb

Please sign in to comment.