-
-
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
fix: handle process[toString] being readonly on newer nodes #8050
Conversation
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.
Looks good! It seems that we won't need additional tests when we add Node 12 to the build, as otherwise all tests would fail horribly, right?
yeah |
This started failing on latest node with the https://nodejs.org/en/blog/release/v11.11.0/ release an hour ago. Getting this error: https://travis-ci.org/msand/react-native-svg-e2e/jobs/502745672 Should v24.2.0-alpha.0 be used for now? |
TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>' https://travis-ci.org/msand/react-native-svg-e2e/jobs/502745672
Fix jestjs/jest#8050 TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>' https://travis-ci.org/msand/react-native-svg-e2e/jobs/502745672
@msand I'm getting this error too |
You can install |
…est#8050) - Updated eslint rules - Removed `gulp-jest`
This resolves an issue on Node 11.x and up. See https://stackoverflow.com/questions/55059748/travis-jest-typeerror-cannot-assign-to-read-only-property-symbolsymbol-tostr and jestjs/jest#8050 for details.
…est#8050) - Updated eslint rules
@SimenB would it be possible to also release a fix for Jest 23? Or is that discontinued now that v24 is out? |
Yes, please upgrade to 24. Alternatively, you can probably use a resolution for jest-util if needed. Why are you blocked from upgrading to 24? |
@SimenB thanks for your quick response! |
The breaking changes should be clearly noted as such in the changelog. And they should be relatively minor. Hopefully you'll have an easy time of it! 🤞 |
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. |
Summary
If we do not do this, Jest fails horribly on Node 12 (tested with yesterday's nightly release)
Beyond this failure, the only things that fails are the leak detector tests since
weak
does not compile on Node 12Test plan
Green CI (although we don't test node 12 yet, at least avoid regressions)