Skip to content

Commit f4b813e

Browse files
Kent C. Doddsalexkrolick
Kent C. Dodds
authored andcommitted
feat: add dont-cleanup-after-each.js (#435)
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 f4b813e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dont-cleanup-after-each.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
process.env.RTL_SKIP_AUTO_CLEANUP = true

package.json

+1
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)