import { Capabilities } from '@wdio/types/build/Capabilities' ; import { Testrunner } from '@wdio/types/build/Options' ; const androidCapabilities = { platformName : 'android' , 'appium:app' : '../native/android/app/build/outputs/apk/debug/app-debug.apk' , 'appium:automationName' : 'UiAutomator2' } ; export const config = { runner : 'local' , specs : [ './native/test/specs/**/*.ts' ] , exclude : [ ] , maxInstances : 1 , capabilities : [ androidCapabilities ] , logLevel : 'info' , bail : 0 , port : 4723 , waitforTimeout : 5000 , waitforInterval : 2000 , connectionRetryTimeout : 120000 , connectionRetryCount : 2 , services : [ 'appium' ] , framework : 'jasmine' , reporters : [ 'spec' ] , jasmineOpts : { defaultTimeoutInterval : 100000 } , before : async ( ) : Promise < void > => { const startupDelay = 10000 ; await new Promise ( resolve => setTimeout ( resolve , startupDelay ) ) ; } } ;