-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add dont-cleanup-after-each.js #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
Codecov Report
@@ Coverage Diff @@
## master #435 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 3 3
Lines 90 90
Branches 13 13
=====================================
Hits 90 90 Continue to review full report at Codecov.
|
I'd love someone else to merge this. I've been a bit merge-happy recently 😅 |
@@ -0,0 +1 @@ | |||
process.env.RTL_SKIP_AUTO_CLEANUP = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be browser-safe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is worth the effort.
🎉 This PR is included in version 9.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What: add dont-cleanup-after-each.js
Why:
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.
How:
This is just a simple file that sets the RTL_SKIP_AUTO_CLEANUP environment variable so that RTL doesn't setup automatic cleanup.
Checklist:
docs site done
I decided to do this after reading #430 (comment)