Skip to content

Commit 3ff3987

Browse files
cpojerfacebook-github-bot-9
authored and
facebook-github-bot-9
committed
Update open source env
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
1 parent 6c02d5b commit 3ff3987

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jestSupport/env.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@
1010

1111
require('../packager/react-packager/src/Resolver/polyfills/babelHelpers.js');
1212
global.__DEV__ = true;
13+
global.__fbBatchedBridgeConfig = {
14+
remoteModuleConfig: [],
15+
localModulesConfig: [],
16+
};
17+
18+
global.Promise = require('promise');

0 commit comments

Comments
 (0)