From bd698aaef8edcaf0dd0b3d9e23b8e79917161dce Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Sat, 5 May 2018 21:21:02 -0600 Subject: [PATCH] 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 34cb6343..c632abb4 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "license": "MIT", "dependencies": { "@vue/test-utils": "^1.0.0-beta.15", - "dom-testing-library": "^1.10.0", + "dom-testing-library": "^2.0.0", "vue": "^2.5.16", "vue-template-compiler": "^2.5.16" },