From 35223c79cc329fbc6272f6cda994fd177bacd90e Mon Sep 17 00:00:00 2001 From: Vlad Sabev Date: Sat, 14 Nov 2020 18:55:29 +0200 Subject: [PATCH 1/2] Use `@testing-library/jest-dom` in README.md Instead of `jest-dom` which is now deprecated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 145dcc8f..92b0ad68 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ npm install --save-dev @testing-library/vue This library has `peerDependencies` listings for `Vue` and `vue-template-compiler`. -You may also be interested in installing `jest-dom` so you can use [the custom +You may also be interested in installing `@testing-library/jest-dom` so you can use [the custom Jest matchers][jest-dom]. ## A basic example From 632546e43888ff62c3efa19bcc7d04d7fae22ae2 Mon Sep 17 00:00:00 2001 From: Vlad Sabev Date: Sat, 14 Nov 2020 19:14:32 +0200 Subject: [PATCH 2/2] Missed a spot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 92b0ad68..ab3bcab2 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ test('increments value on click', async () => { }) ``` -> You might want to install [`jest-dom`][jest-dom] to add handy assertions such +> You might want to install [`@testing-library/jest-dom`][jest-dom] to add handy assertions such > as `.toBeInTheDocument()`. In the example above, you could write > `expect(screen.queryByText('Times clicked: 0')).toBeInTheDocument()`.