Skip to content

Commit

Permalink
[Wallet] Ingore YellowBox warning to run e2e successfully (#5782)
Browse files Browse the repository at this point in the history
### Description

Fix local e2e tests by ignoring warning, which arise in `dev` mode.

### Tested

Run e2e

### Backwards compatibility

Yes
  • Loading branch information
i1skn authored Nov 10, 2020
1 parent f7f1985 commit e7818bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/mobile/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { apolloClient } from 'src/apollo/index'
import { openDeepLink } from 'src/app/actions'
import AppLoading from 'src/app/AppLoading'
import ErrorBoundary from 'src/app/ErrorBoundary'
import { isE2EEnv } from 'src/config'
import i18n from 'src/i18n'
import NavigatorWrapper from 'src/navigator/NavigatorWrapper'
import { persistor, store } from 'src/redux/store'
Expand All @@ -21,12 +22,17 @@ import Logger from 'src/utils/Logger'
enableScreens()

Logger.debug('App/init', 'Current Language: ' + i18n.language)
YellowBox.ignoreWarnings([

const ignoreWarnings = [
'componentWillReceiveProps',
'Remote debugger', // To avoid "Remote debugger in background tab" warning
'cancelTouches', // rn-screens warning on iOS
'Setting a timer', // warns about long setTimeouts which are actually saga timeouts
])
]
if (isE2EEnv) {
ignoreWarnings.push('Overriding previous layout')
}
YellowBox.ignoreWarnings(ignoreWarnings)

const { decimalSeparator, groupingSeparator } = getNumberFormatSettings()

Expand Down

0 comments on commit e7818bf

Please sign in to comment.