mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
3ff39870ce
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
19 lines
553 B
JavaScript
19 lines
553 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
'use strict';
|
|
|
|
require('../packager/react-packager/src/Resolver/polyfills/babelHelpers.js');
|
|
global.__DEV__ = true;
|
|
global.__fbBatchedBridgeConfig = {
|
|
remoteModuleConfig: [],
|
|
localModulesConfig: [],
|
|
};
|
|
|
|
global.Promise = require('promise');
|