react-native-macos/Libraries
Rick Hanlon 9c64bd5739 Properly handle LogBox errors during tests
Summary:
This diff fixes an issue where errors in LogBox during tests would cause the tests to crash.

The crash is due to the NativeExceptionsManager module not being mocked (as all native module need to be in tests). The fix is to properly mock the NativeExceptionManger.

This fix exposed an infinite loop issue where failures in LogBox will be logged to the ExceptionManager, which logs to the console, which logs to LogBox, creating a loop. This diff also fixes that look by moving the LogBox internal error check to the top of the monkey patched console methods.

Changelog: [Internal]

Differential Revision: D20428590

fbshipit-source-id: 7289a480c99ba8dee67772178b7629afb40b330a
2020-03-19 20:31:01 -07:00
..
ART PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
ActionSheetIOS Back out "Moving towards UIWindowScene support" 2020-03-05 15:58:44 -08:00
Alert Back out "Moving towards UIWindowScene support" 2020-03-05 15:58:44 -08:00
Animated Add JS error to AnimatedValue constructor 2020-03-10 18:03:22 -07:00
AppState Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
BatchedBridge Change stringifySafe to have limits on larger objects 2020-03-02 17:28:21 -08:00
Blob Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
BugReporting Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
CameraRoll Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
Components chore(switch): migrate to es6 import/export (#28333) 2020-03-17 18:35:22 -07:00
Core Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
DeprecatedPropTypes Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
EventEmitter Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
FBLazyVector make RN infra labels public 2020-02-28 12:46:49 -08:00
FBReactNativeSpec Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
HeapCapture Fix NativeJSCHeapCapture 2020-01-14 08:03:49 -08:00
Image Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
Inspector Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
Interaction Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
JSInspector Exact-by-default codemod for react-native-github 2019-11-21 09:42:57 -08:00
LayoutAnimation Export LayoutAnimationConfig type 2020-01-28 17:10:30 -08:00
Linking Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
LinkingIOS Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
Lists Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
LogBox Properly handle LogBox errors during tests 2020-03-19 20:31:01 -07:00
Modal Update: Fixing typo on Modal comment code � (#28057) 2020-03-11 10:00:04 -07:00
NativeAnimation Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
NativeModules/specs Add missing NativeEventListener methods to NativeDevSettings (#27838) 2020-01-23 13:20:53 -08:00
Network Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
NewAppScreen Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
Performance deleting marker cancel 2/N. [DO NOT LAND] 2020-03-10 07:11:42 -07:00
PermissionsAndroid Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
Pressability Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
PushNotificationIOS Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
RCTRequired make RN infra labels public 2020-02-28 12:46:49 -08:00
ReactNative Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
ReactPrivate Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
Renderer React Native sync for revisions 241c446...b5c6dd2 2020-03-16 13:09:54 -07:00
Settings Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
Share PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
Storage Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
StyleSheet Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
SurfaceBackedComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
SurfaceHostingComponent Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
Text PlatformColor implementations for iOS and Android (#27908) 2020-03-02 15:12:09 -08:00
TurboModule chore: fix typo in comments (#28269) 2020-03-09 15:37:33 -07:00
TypeSafety Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
Types Convert easy files to flow strict-local 2019-12-05 16:06:46 -08:00
Utilities update JSTime to last call 2020-03-09 19:47:36 -07:00
Vibration Add a perfLogger argument to getTurboModuleWithJSInvoker: 2020-03-18 11:01:15 -07:00
WebSocket Fixes RCTReconnectingWebSocket connecting in infinite loop when stopped before it connects (#26864) 2020-02-11 10:54:39 -08:00
Wrapper Back out "Rename measure to measureContent and pass it LayoutContext" 2020-03-04 05:01:53 -08:00
YellowBox Delete YellowBox 2020-02-21 10:34:40 -08:00
__flowtests__ Remove ReactNative.NativeComponent from React Native 2020-02-13 15:08:27 -08:00
polyfills Remove groupCollapsed from list of unsupported polyfills 2019-12-06 13:35:47 -08:00
vendor Do not explicitly include ".js" in Library imports (#28311) 2020-03-17 02:11:53 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
Promise.js Don't crash when pretty-format is not available 2019-11-19 16:22:29 -08:00
UTFSequence.js Clean-up $TEMPORARY$object in xplat/js/react-native-github 2019-08-21 09:58:24 -07:00
promiseRejectionIsError.js Migrate "Libraries" from Haste to standard path-based requires (sans vendor & renderers) (#24749) 2019-05-08 08:48:59 -07:00