mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
This resolves a flakiness in tests where the early-crash invoked too early on iOS and a timeout is thrown instead of error being catch using the same resolution from the Android test app
13 lines
311 B
JavaScript
13 lines
311 B
JavaScript
import { LogBox, AppRegistry } from 'react-native';
|
|
|
|
import example from './src/app';
|
|
|
|
import registerEarlyCrashIfNeeded from './registerEarlyCrashIfNeeded';
|
|
|
|
class exampleIos extends example {}
|
|
|
|
registerEarlyCrashIfNeeded();
|
|
|
|
LogBox.ignoreAllLogs();
|
|
AppRegistry.registerComponent('example', () => exampleIos);
|