@testing-library/react-native
Version:
Simple and complete React Native testing utilities that encourage good testing practices.
7 lines (6 loc) • 519 B
TypeScript
type FakeTimersTypes = 'modern' | 'legacy';
declare function runWithRealTimers<T>(callback: () => T): T;
declare function getJestFakeTimersType(): FakeTimersTypes | null;
declare const jestFakeTimersAreEnabled: () => boolean;
declare const clearTimeoutFn: typeof clearTimeout, setImmediateFn: typeof setImmediate, setTimeoutFn: typeof setTimeout;
export { clearTimeoutFn as clearTimeout, getJestFakeTimersType, jestFakeTimersAreEnabled, runWithRealTimers, setImmediateFn as setImmediate, setTimeoutFn as setTimeout, };