mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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