MCPcopy Index your code
hub / github.com/callstack/agent-device / isSnapshotBackend

Function isSnapshotBackend

src/kernel/snapshot.ts:82–90  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

80export type SnapshotBackend = 'xctest' | 'android' | 'macos-helper' | 'linux-atspi' | 'web';
81
82export function isSnapshotBackend(value: unknown): value is SnapshotBackend {
83 return (
84 value === 'xctest' ||
85 value === 'android' ||
86 value === 'macos-helper' ||
87 value === 'linux-atspi' ||
88 value === 'web'
89 );
90}
91
92export function usesMobileSnapshotPresentation(backend: SnapshotBackend | undefined): boolean {
93 return backend === undefined || backend === 'xctest' || backend === 'android';

Callers 1

formatSnapshotTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected