-
-
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
Different behavior with window global scope in newer Node.js versions #3675
Comments
Have rewritten the example so that it really only focuses on the here stated problem. |
Hah, so I was super curious about this because WTF, you can delete from global objects in newer Node versions but cannot do this in LTS 4 nor LTS 6. So I dug a little bit and this is actually a fix in You'll find a reference in Node 7.6 changelog: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V7.md#2017-02-21-version-760-current-italoacasas Closing then, happy testing and sorry for the delay 😄 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Do you want to request a feature or report a bug?
bug?
What is the current behavior?
When deleting something from the global
window
scope during 2 test runs, the behavior is different when using for example Node.js7.4.0
(2nd test passes) and7.9.0
/7.10.0
(2nd test fails).If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.https://repl.it/IVBE/7
What is the expected behavior?
I don't know what the expected behavior should be, but I guess the one on newer Node.js versions where the second test is failing because the key was deleted seems to be the right one. That might not be even a Jest related issue, or an issue at all?
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
Jest:
19.0.2
and20.0.4
Node.js:
7.4.0
(working) and7.9.0
/7.10.0
(not working)The text was updated successfully, but these errors were encountered: