Skip to content

fakePlatform — @gj-kit/expo-media

A public function from @gj-kit/expo-media/testing. The signature below is taken directly from the 0.6.1 release declaration.

import { fakePlatform } from '@gj-kit/expo-media/testing';
/**
* 설계 문서 §5.6의 확정 시그니처.
*
* ⚠ `isDev`는 **false**가 기본이다. true로 두면 모든 유닛이 콘솔 로그를 뿜고, 그 소음 속에서
* "로그에 원문 uri가 실렸는가"(§7 하드닝 8) 같은 진짜 신호를 잃는다. 로거를 검증하는 테스트만
* 명시적으로 켠다 — `createFakePlatform({ os, isDev: true })`.
*/
declare function fakePlatform(os: MediaPlatform): PlatformAdapter;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: ./testing
  • Source: GitHub