Stubbing The Non-configurable

1 · Gleb Bahmutov · June 18, 2021, 9:43 p.m.
Recently I have shown how to verify that a React Native application in bahmutov/expo-cypress-examples opens the help URL when the user clicks on the help link. The application used the following code:123456import * as WebBrowser from 'expo-web-browser';function handleHelpPress() { WebBrowser.openBrowserAsync( 'https://docs.expo.io/...' );}The application was tested while running in the browser, served by the Expo tool. I guessed that in the browser, the second window is opened using window....