-
Notifications
You must be signed in to change notification settings - Fork 47k
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 build for useCreateElement: false, run Travis #6070
Conversation
12f3ea5
to
5516677
Compare
@spicyj updated the pull request. |
5516677
to
cab7444
Compare
@spicyj updated the pull request. |
cab7444
to
6326289
Compare
@spicyj updated the pull request. |
yay travis passes |
@@ -149,13 +150,29 @@ assign(ReactDOMTextComponent.prototype, { | |||
if (nativeNode) { | |||
return nativeNode; | |||
} | |||
nativeNode = [this._openingComment, this._nativeNode]; | |||
if (!this._closingComment) { |
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.
Woops, sorry, I guess I assumed useCreateElement=false was already tested. But this seems obvious now. Too bad we needed the code to find the other comment, after all.
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, I forgot about it too. Ah well.
@@ -73,6 +73,11 @@ script: | |||
else | |||
./node_modules/.bin/grunt jest:normal | |||
fi | |||
echo 'Testing in server-render (HTML generation) mode...' | |||
printf '\nmodule.exports.useCreateElement = false;\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.
I personally would have used echo
for this too but meh.
Otherwise it seems good.
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.
I don't think you can escape stuff (newlines) inside echo reliably cross-platform.
These weren't caught by CI in facebook#5753 because we don't automatically test that yet... fixing that next.
It's important that we keep these code paths working because they're the only comprehensive test of adopting server-rendered HTML that we have right now. This is terrible and hacky but I am hopeful that it will at least catch stuff.
6326289
to
81e5dd0
Compare
Fix build for useCreateElement: false, run Travis
@spicyj updated the pull request. |
It's important that we keep these code paths working because they're the only comprehensive test of adopting server-rendered HTML that we have right now. This is terrible and hacky but I am hopeful that it will at least catch stuff.
cc @mwiencek for text changes (I missed these in #5753), @zpao for clowny Travis stuff I added here