From 7942f684509831afcdd4d88b191e9193fab576ff Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 4 Mar 2020 12:52:19 -0700 Subject: [PATCH] fix: remove deprecated cleanup-after-each (#598) BREAKING CHANGE: This removes `@testing-library/react/cleanup-after-each` which is deprecated and hasn't done anything for many versions. --- cleanup-after-each.js | 4 ---- package.json | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 cleanup-after-each.js diff --git a/cleanup-after-each.js b/cleanup-after-each.js deleted file mode 100644 index ace739eb..00000000 --- a/cleanup-after-each.js +++ /dev/null @@ -1,4 +0,0 @@ -console.warn( - 'The module `@testing-library/react/cleanup-after-each` has been deprecated and no longer does anything (it is not needed). You no longer need to import this module and can safely remove any import or configuration which imports this module', -) -/* eslint no-console:0 */ diff --git a/package.json b/package.json index 3b5f3797..cb29c210 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ }, "files": [ "dist", - "cleanup-after-each.js", "dont-cleanup-after-each.js", "pure.js" ], @@ -86,4 +85,4 @@ "url": "https://github.com/testing-library/react-testing-library/issues" }, "homepage": "https://github.com/testing-library/react-testing-library#readme" -} \ No newline at end of file +}