Skip to content

FakeCallLog — @gj-kit/expo-media

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

import { FakeCallLog } from '@gj-kit/expo-media/testing';
/**
* 페이크가 기록하는 호출 이력.
*
* ⚠ **인자를 통째로 기록한다** — 호출 횟수만 세면 "무엇을 가지고 불렀는가"를 잃는다.
* 하드닝 2의 후보 순회 검증은 `copy.from`이 어느 후보였는지를 봐야 성립하고,
* 하드닝 9의 창 분할 검증은 `readBase64.range`가 3의 배수인지를 봐야 성립한다.
*/
type FakeCallLog = {
readonly stat: readonly string[];
readonly copy: readonly {
readonly from: string;
readonly to: string;
}[];
readonly remove: readonly string[];
readonly ensureDirectory: readonly string[];
readonly readBase64: readonly {
readonly uri: string;
readonly range: ChunkRange;
}[];
readonly download: readonly {
readonly url: string;
readonly to: string;
}[];
};

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