From 7794eea3c59ee65f7e7cfdcfaca4c9382f5c74af Mon Sep 17 00:00:00 2001 From: Kirill Korolyov Date: Wed, 1 Apr 2020 18:29:55 +0100 Subject: [PATCH] Docs: use simplified import of jest-dom --- 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".