Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
isMobileApp.mockReturnValue(false)
spyConsoleError = jest.spyOn(console, 'error')
spyConsoleError.mockImplementation(message => {
if (message.lastIndexOf('Warning: Failed prop type:') === 0) {
throw new Error(message)
}
})
openNativeFromNativeSpy = jest.spyOn(AppLinker, 'openNativeFromNative')
isMobileApp.mockReturnValue(false)
isMobile.mockReturnValue(false)
isAndroid.mockReturnValue(false)
appSwitchMock = jest.fn()
})