import * as os from "os" ; import { join } from "path" ; const XDLFsCache = require ( "xdl/build/tools/FsCache" ) ; export class SmokeTestsConstants { public static defaultTargetAndroidPlatformVersion = "10" ; public static defaultTargetIosPlatformVersion = "14.5" ; public static defaultTargetAndroidPort = 5554 ; public static defaultTargetAndroidDeviceName = `emulator-${ SmokeTestsConstants . defaultTargetAndroidPort }` ; public static iOSExpoAppsCacheDir = join ( os . homedir ( ) , ".expo" , "ios-simulator-app-cache" ) ; public static ExpoVersionsJsonFilePath = join ( XDLFsCache . getCacheDir ( ) , "versions.json" ) ; public static elementResponseTimeout = 250 ; public static enableRemoteJSTimeout = 120 * 1000 ; public static stopPackagerCommand = "Stop Packager" ; public static reloadAppCommand = "Reload App" ; public static macOSTestTimeout = 600 * 1000 ; public static windowsTestTimeout = 800 * 1000 ; public static expoTestTimeout = 750 * 1000 ; public static iosTestTimeout = 700 * 1000 ; public static androidTestTimeout = 400 * 1000 ; public static hermesTestTimeout = 15 * 60 * 1000 ; public static networkInspectorTestTimeout = 10 * 60 * 1000 ; public static smokeTestSetupAwaitTimeout = 30 * 60 * 1000 ; public static expoAppBuildAndInstallTimeout = 60 * 1000 ; public static macOSAppBuildAndInstallTimeout = 400 * 1000 ; public static windowsAppBuildAndInstallTimeout = 600 * 1000 ; public static waitForElementTimeout = 30 * 1000 ; public static expoAppLaunchTimeout = 120 * 1000 ; public static debugConsoleSearchTimeout = 0.5 * 1000 ; public static smokeTestAfterEachTimeout = 10 * 60 * 1000 ; public static RNAppName = "latestRNApp" ; public static HermesAppName = "latestHermesRNApp" ; public static ExpoAppName = "latestExpoApp" ; public static pureRNExpoAppName = "pureRNExpoApp" ; public static RNWAppName = "RNWApp" ; public static RNWHermesAppName = "RNWHermesApp" ; public static RNmacOSAppName = "latestRNmacOSApp" ; public static RNmacOSHermesAppName = "latestRNmacOSHermesApp" ; public static sampleRNAppName = "ReactNativeSample" ; public static sampleHermesAppName = "HermesReactNativeSample" ; public static sampleExpoAppName = "ExpoSample" ; public static samplePureRNExpoAppName = "PureRNExpoSample" ; public static sampleRNWAppName = "RNWSample" ; public static sampleRNWHermesAppName = "RNWHermesSample" ; public static sampleRNmacOSAppName = "MacOSReactNativeSample" ; public static sampleRNmacOSHermesAppName = "MacOSHermesReactNativeSample" ; public static artifactsDir = "SmokeTestLogs" ; public static VSCodeUserDataDir = "VSCodeUserData" ; public static ExpressServerDir = "TestExpressServer" ; public static AppjsFileName = "App.js" ; public static ApptsxFileName = "App.tsx" ; public static ExpressServerFileName = "server.js" ; public static EnvConfigFileName = "config.json" ; public static EnvDevConfigFileName = "config.dev.json" ; public static PackagerStartedPattern = "Packager started" ; public static ReactNativeLogFileName = "ReactNative.txt" ; public static ReactNativeRunExpoLogFileName = "ReactNativeRunexponent.txt" ; public static ChromeDebugCoreLogFileName = "ChromeDebugCoreLogs.txt" ; public static VSCodeDriverLogFileName = "VSCodeDriverLogs.txt" ; public static NetworkInspectorLogFileName = "NetworkInspector.txt" ; public static expoPackageName = "host.exp.exponent" ; }