Skip to content

Commit adefd9b

Browse files
author
Kent C. Dodds
committed
feat: add dont-cleanup-after-each.js
This is just a simple file that sets the RTL_SKIP_AUTO_CLEANUP environment variable so that RTL doesn't setup automatic cleanup. This makes it easier for folks who don't want to write their tests in an isolated way. It's totally not recommended, but it will hopefully reduce pain while people migrate from one testing style to another.
1 parent 8277b06 commit adefd9b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dont-cleanup-after-each.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
process.env.RTL_SKIP_AUTO_CLEANUP = true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dist",
2626
"typings",
2727
"cleanup-after-each.js",
28+
"dont-cleanup-after-each.js",
2829
"pure.js"
2930
],
3031
"keywords": [

0 commit comments

Comments
 (0)