Remove global mocks by adding support for "suppressReactErrorLogging" property (#11636)
* Remove global mocks They are making it harder to test compiled bundles. One of them (FeatureFlags) is not used. It is mocked in some specific test files (and that's fine). The other (FiberErrorLogger) is mocked to silence its output. I'll look if there's some other way to achieve this. * Add error.suppressReactErrorLogging and use it in tests This adds an escape hatch to *not* log errors that go through React to the console. We will enable it for our own tests.
D
Dan Abramov committed
e949d57508dc0248ca12ba4ce13ed62bed008548
Parent: f114bad
Committed by GitHub <noreply@github.com>
on 11/23/2017, 1:15:22 AM