-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
[assert helpers] ReactChildren-test #31844
[assert helpers] ReactChildren-test #31844
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
' See https://react.dev/link/warning-keys for more information.\n' + | ||
' in div (at **)\n' + | ||
' in **/ReactChildren-test.js:**:** (at **)\n' + | ||
' in **/ReactChildren.js:**:** (at **)\n' + |
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.
@sebmarkbage another example of the file path thing
Comparing: 8f92ea4...b3ee936 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
2c653b8
to
ab11da2
Compare
ab11da2
to
5981201
Compare
await act(() => { | ||
root.render( | ||
<ComponentRenderingClonedChildren> | ||
<div /> | ||
<div /> | ||
</ComponentRenderingClonedChildren>, | ||
); | ||
}); |
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.
this doesn't error anymore?
<div /> | ||
</ComponentRenderingMappedChildren>, | ||
); | ||
}); |
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.
no error here anymore?
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 it's confusing but the toErrorDev()
helper is a console.error, and since the array was empty it means there were no console errors. The assert helpers throw if a test ends with un-asserted logs, so no assertion is needed.
Based off facebook#31843 Commit to review: facebook@2c653b8 Moar tests DiffTrain build for [36d15d5](facebook@36d15d5)
Based off #31843
Commit to review: 2c653b8
Moar tests