From 56d34c01cb5a6db6e602c942605fbd9e4f62e6be Mon Sep 17 00:00:00 2001 From: Kirill Korolyov Date: Sun, 5 Apr 2020 00:28:19 +0100 Subject: [PATCH] Use simplified import of @testing-library/jest-dom (#8763) --- docusaurus/docs/running-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/running-tests.md b/docusaurus/docs/running-tests.md index 7b81c1d2340..a757355e018 100644 --- a/docusaurus/docs/running-tests.md +++ b/docusaurus/docs/running-tests.md @@ -194,7 +194,7 @@ Similar to `enzyme` you can create a `src/setupTests.js` file to avoid boilerpla ```js // react-testing-library renders your components to document.body, // this adds jest-dom's custom assertions -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; ``` Here's an example of using `react-testing-library` and `jest-dom` for testing that the `` component renders "Welcome to React".