react-native/Libraries/JavaScriptAppEngine
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
..
Initialization Fix jest test that runs the polyfill 10 times 2015-10-12 11:52:28 -07:00
System/JSTimers Fixed null argument errors for timers and layout animations 2015-08-01 06:40:27 -08:00
polyfills [react-native] Make document.js into a polyfill. Fixes #1149 2015-05-13 17:50:21 -08:00