Files
react-native/Libraries
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
..
2015-09-22 10:46:26 -07:00
2015-07-24 08:41:58 -08:00
2015-08-06 15:49:35 -08:00
2015-03-25 11:09:54 -08:00
2015-10-12 04:15:27 -07:00
2015-09-08 03:34:33 -08:00
2015-09-30 21:02:31 -07:00
2015-10-06 20:01:21 -07:00
2015-10-07 09:43:22 -07:00
2015-07-24 08:41:58 -08:00
2015-07-24 08:41:58 -08:00
2015-04-15 06:06:29 -08:00