1import * as Updates from '../Updates'; 2 3it(`doesn't throw when reloadAsync is called in production`, async () => { 4 const old__DEV__ = __DEV__; 5 //@ts-expect-error: __DEV__ is usually not assignable but we need to set it to false for this test 6 __DEV__ = false; 7 8 await Updates.reloadAsync(); 9 10 //@ts-expect-error: __DEV__ is usually not assignable but we need to set it to false for this test 11 __DEV__ = old__DEV__; 12}); 13