( appleOs: AppleOS, )
| 177 | } |
| 178 | |
| 179 | function resolveRunnerPlatformNameForAppleOs( |
| 180 | appleOs: AppleOS, |
| 181 | ): 'iOS' | 'tvOS' | 'macOS' | 'visionOS' { |
| 182 | switch (appleOs) { |
| 183 | case 'tvos': |
| 184 | return 'tvOS'; |
| 185 | case 'macos': |
| 186 | return 'macOS'; |
| 187 | case 'visionos': |
| 188 | return 'visionOS'; |
| 189 | // iOS and iPadOS share the single iOS runner profile/SDK. watchOS remains |
| 190 | // reserved in the type but is never produced by discovery; defaulting it to |
| 191 | // iOS keeps any future record on a valid runner profile without introducing |
| 192 | // watchOS support. |
| 193 | default: |
| 194 | return 'iOS'; |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | export function resolveAppleSimulatorSetPathForSelector(params: { |
| 199 | simulatorSetPath?: string; |
no outgoing calls
no test coverage detected
searching dependent graphs…