Skip to content

Commit 898477d

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) 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.
1 parent cb221de commit 898477d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
3737
"license": "MIT",
3838
"dependencies": {
39-
"dom-testing-library": "^1.10.0",
39+
"dom-testing-library": "^2.0.0",
4040
"wait-for-expect": "^0.5.0"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
 (0)