Skip to content
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

Rewrite some tests relying on internal APIs #8148

Merged
merged 1 commit into from Oct 29, 2016

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Oct 29, 2016

This deletes our use of reactComponentExpect (which has never been a public API).
Pretty sure it was added at some point to save the time but here we are.

I haven't checked the use of this internally yet but if we do use it, we should either change those callsites or at least put it in the contrib folder and mark as deprecated.

This bumps from 960 to 967 tests on Fiber, but more importantly, it surfaces real errors instead of artificial ones.

@sebmarkbage
Copy link
Collaborator

I'm pretty sure this is heavily used internally and also in React Native. Clean up might be a bit of work. I don't think we should delete it from the repo until we've fixed those callers - which might need to be maintained in this repo. We can land the fixes to our tests though.

@gaearon
Copy link
Collaborator Author

gaearon commented Oct 29, 2016

Un-deleted reactComponentExpect and its test.

@gaearon
Copy link
Collaborator Author

gaearon commented Oct 29, 2016

Landing fixes just to our tests.

@gaearon gaearon merged commit c567b6e into facebook:master Oct 29, 2016
@gaearon gaearon deleted the kill-reactcomponentexpect branch October 29, 2016 23:44
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
@gaearon gaearon mentioned this pull request Oct 20, 2017
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants