Skip to content

TASK: Use suppressReactErrorLogging to suppress errors in mocha tests #3

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

Conversation

markusguenther
Copy link
Member

@markusguenther markusguenther commented Aug 1, 2018

Since React version 16 the tests throw errors that we should use ErrorBoundaries.
In the ReactFiberErrorLogger it is possible to suppress the errors when error.suppressReactErrorLogging is true.

So we now throw errors and when the NODE_ENV is TESTING we suppress the errors and get clean tests.

Resolves: #2

@markusguenther markusguenther merged commit 8adc420 into FriendsOfReactJS:master Aug 2, 2018
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.

1 participant