Skip to content

Commit

Permalink
Run ExceptionsManager unit tests in both __DEV__ and prod mode
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[General][Fixed] - Run ExceptionsManager unit tests in both __DEV__ and prod mode

This suite of unittests use a `__DEV__` check in various places to check that the correct data is sent to either LogBox (in __DEV__) or the Native ExceptionsManager (in PROD). However, we're not actually running both modes, so half of the assert branches in these tests aren't ever utilized.

This diff uses the same approach as ReactNativeVersionCheck-test.js to execute this test suite twice: Once in DEV and once in PROD mode.

Reviewed By: motiz88

Differential Revision: D36099190

fbshipit-source-id: 40b8ea26f1d9e093202f3c3f3b55111110a8d64c
  • Loading branch information
GijsWeterings authored and facebook-github-bot committed Aug 15, 2022
1 parent 5d34c55 commit a154207
Showing 1 changed file with 684 additions and 648 deletions.

0 comments on commit a154207

Please sign in to comment.