MCPcopy Create free account
hub / github.com/callstack/agent-device / snapshotBackendForPlatform

Function snapshotBackendForPlatform

src/cloud-webdriver/runtime-helpers.ts:22–26  ·  view source on GitHub ↗
(
  platform: CloudWebDriverPlatform,
)

Source from the content-addressed store, hash-verified

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

Callers 1

allocateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…