Skip to content

Commit 8277b06

Browse files
author
Kent C. Dodds
committed
fix: restore cleanup-after-each and include a deprecation warning
ref: #433
1 parent 0b83ca5 commit 8277b06

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cleanup-after-each.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
console.warn(
2+
'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',
3+
)
4+
/* eslint no-console:0 */

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"files": [
2525
"dist",
2626
"typings",
27+
"cleanup-after-each.js",
2728
"pure.js"
2829
],
2930
"keywords": [

0 commit comments

Comments
 (0)