Skip to content

[Fiber] Make server rendering tests pass #8372

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

Merged
merged 2 commits into from
Nov 23, 2016

Conversation

sebmarkbage
Copy link
Collaborator

This doesn't actually mean that reviving works but tests pass because we're not actually testing any reviving behavior.

This still doesn't pass the render into a document root tests because that actually requires reviving.


var expectedMarkup = lastMarkup;
if (ReactDOMFeatureFlags.useFiber) {
var reactMetaData = /\s+data-react[a-z-]+=\"[^\"]*\"/g;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: " doesn't need \

We need this because it runs the injection.
This markup is testing implementation details rather than behavior.
@sebmarkbage sebmarkbage merged commit f38c355 into facebook:master Nov 23, 2016
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
* Use the public ReactDOMServer in tests

We need this because it runs the injection.

* Let Fiber skip react data attributes and comments in SSR tests

This markup is testing implementation details rather than behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants