( platform: CloudWebDriverPlatform, )
| 20 | } |
| 21 | |
| 22 | export function snapshotBackendForPlatform( |
| 23 | platform: CloudWebDriverPlatform, |
| 24 | ): Extract<SnapshotResult['backend'], 'android' | 'xctest'> { |
| 25 | return platform === 'ios' ? 'xctest' : 'android'; |
| 26 | } |
| 27 | |
| 28 | function firstDefined<T>(...values: Array<T | undefined>): T | undefined { |
| 29 | return values.find((value) => value !== undefined); |
no outgoing calls
no test coverage detected
searching dependent graphs…