From adefd9b1dafcfb6555ac6b1af4d9758c96eb7ae5 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Sat, 10 Aug 2019 07:38:58 -0600 Subject: [PATCH] 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. --- dont-cleanup-after-each.js | 1 + package.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 dont-cleanup-after-each.js diff --git a/dont-cleanup-after-each.js b/dont-cleanup-after-each.js new file mode 100644 index 00000000..083a8188 --- /dev/null +++ b/dont-cleanup-after-each.js @@ -0,0 +1 @@ +process.env.RTL_SKIP_AUTO_CLEANUP = true diff --git a/package.json b/package.json index 84e734d3..279e065e 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "dist", "typings", "cleanup-after-each.js", + "dont-cleanup-after-each.js", "pure.js" ], "keywords": [