Skip to content

Commit bba26fb

Browse files
author
Kent C. Dodds
authored
feat(TextMatch): upgrade dom-testing-library
- 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.
1 parent 04c5850 commit bba26fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
4040
"license": "MIT",
4141
"dependencies": {
42-
"dom-testing-library": "^1.10.0"
42+
"dom-testing-library": "^2.0.0"
4343
},
4444
"devDependencies": {
4545
"cypress": "^2.1.0",

0 commit comments

Comments
 (0)