(
devices: DeviceInfo[],
selector: AppleDeviceSelector,
context: { simulatorSetPath?: string },
)
| 80 | } |
| 81 | |
| 82 | async function resolveAppleDeviceCandidate( |
| 83 | devices: DeviceInfo[], |
| 84 | selector: AppleDeviceSelector, |
| 85 | context: { simulatorSetPath?: string }, |
| 86 | ): Promise<DeviceInfo | undefined> { |
| 87 | try { |
| 88 | return await resolveDevice(devices, selector, context); |
| 89 | } catch (error) { |
| 90 | if (canFallbackAfterAppleDeviceNotFound(error, selector)) return undefined; |
| 91 | throw error; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | function canFallbackAfterAppleDeviceNotFound( |
| 96 | error: unknown, |
no test coverage detected