Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: We weren't exposing a mock for the batched bridge, which resulted in the WebSocket test failure but only in the open source copy of react-native. public Reviewed By: voideanvalue, vjeux Differential Revision: D2782151 fb-gh-sync-id: e896097dd6060bc26963bc4c23db87b7277b3eba
- Loading branch information
3ff3987
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit breaks tests that use promises.
#6104
3ff3987
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And again, if you're using the new "modern" fake timers in Jest 26.1.0; see jestjs/jest#10221.
Remove
global.Promise = require('promise');
, and it works again. (It lives injest/setup.js
now; it was moved at some point.)