From bac3857a625b8f1284769918dd7c310869757a55 Mon Sep 17 00:00:00 2001 From: Noam Gabriel Jacobson Date: Tue, 20 Aug 2019 22:22:17 -0400 Subject: [PATCH] Update README.md Removing `import '@testing-library/react/cleanup-after-each'; ` due to deprecation. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 57171e77..1ac6e455 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,6 @@ export default HiddenMessage // __tests__/hidden-message.js // these imports are something you'd normally configure Jest to import for you // automatically. Learn more in the setup docs: https://testing-library.com/docs/react-testing-library/setup#cleanup -import '@testing-library/react/cleanup-after-each' import '@testing-library/jest-dom/extend-expect' // NOTE: jest-dom adds handy assertions to Jest and is recommended, but not required @@ -264,7 +263,6 @@ export default Login // __tests__/login.js // again, these first two imports are something you'd normally handle in // your testing framework configuration rather than importing them in every file. -import '@testing-library/react/cleanup-after-each' import '@testing-library/jest-dom/extend-expect' import React from 'react' import {render, fireEvent} from '@testing-library/react'