-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Support deletion in process.env too #5466
Conversation
// You can delete through case-insensitiveness too. | ||
delete fake.prop_string; | ||
|
||
expect('PROP_STRING' in fake).toBe(false); |
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.
expect(fake).not.toHaveProperty('PROP_STRING');
?
Not sure if better or not
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.
Yeah, that could work too 🙂
@@ -2,12 +2,19 @@ | |||
|
|||
### Features | |||
|
|||
* `[jest-util]` Add deletion to `process.env` as well | |||
([#5466](https://github.com/facebook/jest/pull/5466)) | |||
* `[jest-util]` Add case-insensitive getters/setters to `process.env` |
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.
❤️
Lint failures on CI |
Codecov Report
@@ Coverage Diff @@
## master #5466 +/- ##
=========================================
Coverage ? 62.23%
=========================================
Files ? 205
Lines ? 6932
Branches ? 4
=========================================
Hits ? 4314
Misses ? 2617
Partials ? 1
Continue to review full report at Codecov.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Get/Set behavior was implemented, but we lacked deletion. This PR adds it, along with some tests.