-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Several tests fail on main with Node v16 #22441
Comments
At least a couple of these are just that V8 changed format of the error message for undefined values. We know that stopping to respect displayName will mess with our component stack traces. Some of the ART ones seems to be that displayName doesn't show up in stacks (at least create-react-class). But this seems like it should fail too: https://github.com/facebook/react/blob/main/packages/react-reconciler/src/__tests__/ReactMemo-test.js#L572 |
Our Lines 102 to 104 in 8131de1
|
A couple of these are just that V8 changed format of the error message for undefined values.! |
so should we need to improve test support for v16? Or it's good to stick to the LTS version. |
Seems like it would be nice if we could feature detect and support both. (Have not thought about how this would be done.) |
I will take a pass at this. |
Here we go: #22477 |
It looks like there are a number of variations of ways that are currently being used to test that aren't captured by the changes made in #22477 I'll just include one example for each pattern variation I saw in my failed test runs:
So it looks like the other methods being used to test for this are Edit: Opened a new issue for this: |
I forked and cloned the repo this morning (at c88fb49), ran
yarn
andyarn test
, and several tests failed.React version: main (c88fb49)
Steps To Reproduce
yarn
andyarn test
I was on the latest NodeJS version (16.10.0). Note that tests pass for me when switching to the 14.x LTS release of Node.
The current behavior
13 tests fail across 5 suites. Output at https://gist.github.com/josephsavona/91a3d48add8a1c47c71178522583281b
The expected behavior
All tests pass
The text was updated successfully, but these errors were encountered: