Nick Gerleman
217696ee17
Fail tests on console.error() or console.warn()
...
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
2022-12-01 06:59:04 -08:00
..
2022-12-01 06:59:04 -08:00
2022-11-30 12:25:02 -08:00
2022-11-30 12:25:02 -08:00
2021-12-30 15:11:21 -08:00
2022-11-17 10:58:38 -08:00
2022-11-02 14:58:37 -07:00
2022-10-18 18:56:19 -07:00
2022-11-08 20:37:27 -08:00
2021-12-30 15:11:21 -08:00
2022-09-30 14:28:48 -07:00
2022-09-28 15:48:40 -07:00
2022-09-30 14:28:48 -07:00
2022-11-14 17:16:20 -08:00
2022-09-26 12:09:45 -07:00
2021-12-30 15:11:21 -08:00
2022-09-26 12:09:45 -07:00
2022-05-04 16:13:07 -07:00
2022-09-07 13:13:08 -07:00
2022-09-08 11:52:10 -07:00
2022-09-30 14:28:48 -07:00
2022-09-28 14:06:42 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2022-09-30 14:28:48 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-06-14 13:37:04 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2022-10-13 02:23:13 -07:00
2021-12-30 15:11:21 -08:00
2022-10-13 02:23:13 -07:00
2022-11-07 09:52:52 -08:00
2022-11-30 12:25:02 -08:00
2022-11-30 12:25:02 -08:00
2022-09-30 14:28:48 -07:00
2022-09-28 14:06:42 -07:00