Skip to content

ManualClock — @gj-kit/expo-auth

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

import { ManualClock } from '@gj-kit/expo-auth/testing';
/** Deterministic {@link AuthClock}: `advance` fires elapsed timers and drains microtasks. */
type ManualClock = AuthClock & {
/** Move time forward, firing due timers in order and letting their async chains settle. */
advance(ms: number): Promise<void>;
/** Observability: number of currently armed timers (asserting "timer stopped" outcomes). */
readonly pendingTimerCount: number;
};

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-auth
  • Version: 0.1.1
  • Public entry: ./testing
  • Source: GitHub