react-native/Libraries/JavaScriptAppEngine/Initialization
Christopher Chedeau da359c312a Fix jest test that runs the polyfill 10 times
Summary: @​public

jest is running the polyfill multiple times on the same environment (cc @cpojer, need to fix that!). By default jest doesn't have XMLHttpRequest polyfilled so it'll define a property with writable to be false. It'll fatal the second time it tries to override XMLHttpRequest.

The hacky workaround is to make properties that do not exist with writable: true. But the long term fix would be to make jest stop running the polyfill multiple times.

Reviewed By: @javache

Differential Revision: D2532019

fb-gh-sync-id: a82abf69541781a64a0744798c736f90833e28cb
2015-10-12 11:52:28 -07:00
..
__tests__ [ReactNative] Ignore bad inputs to parseErrorStack 2015-06-22 10:09:08 -08:00
ExceptionsManager.js Handle errors that are not `Error` instances 2015-09-23 19:29:19 -07:00
InitializeJavaScriptAppEngine.js Fix jest test that runs the polyfill 10 times 2015-10-12 11:52:28 -07:00
SourceMap.js [react-packager] Rewrite dependency graph (support node_modules, speed, fix bugs etc) 2015-06-19 18:05:18 -08:00
checkFlowAtRuntime.js Make flow check async 2015-08-17 03:13:16 -07:00
loadSourceMap.js Renamed RCTDataManager to RCTNetworking 2015-06-18 09:44:30 -08:00
parseErrorStack.js Make flow check async 2015-08-17 03:13:16 -07:00
source-map-url.js [ReactNative] Use ASCII double quotes 2015-07-24 13:16:25 -08:00