Skip to content

Commit

Permalink
feat: add dont-cleanup-after-each.js (#435)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kent C. Dodds authored and alexkrolick committed Aug 10, 2019
1 parent 8277b06 commit f4b813e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dont-cleanup-after-each.js
@@ -0,0 +1 @@
process.env.RTL_SKIP_AUTO_CLEANUP = true
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -25,6 +25,7 @@
"dist",
"typings",
"cleanup-after-each.js",
"dont-cleanup-after-each.js",
"pure.js"
],
"keywords": [
Expand Down

0 comments on commit f4b813e

Please sign in to comment.