217696ee17
Summary: This makes it so that React Native unit tests will fail if code unexpectedly outputs a warning or error (which would show as a redbox error). This logic split out from the normal `jest/setup.js` which is included by the jest-preset, to only effect our tests instead of existing RN Jest users. Changelog: [Internal][Changed] - Fail tests on `console.error()` or `console.warn()` Reviewed By: huntie Differential Revision: D41564032 fbshipit-source-id: 3cc7d3a8433fcb75f654669b9c350dea2da937a8 |
||
---|---|---|
.. | ||
private | ||
MockNativeMethods.js | ||
assetFileTransformer.js | ||
local-setup.js | ||
mockComponent.js | ||
mockModal.js | ||
mockNativeComponent.js | ||
mockScrollView.js | ||
react-native-env.js | ||
renderer.js | ||
setup.js |