UNPKG

material-motion-testing-utils

Version:
8 lines (7 loc) 314 B
import { Performance } from './Performance'; export declare type PerformanceClosure = (performance: Performance) => any; /** * Replaces window.requestAnimationFrame with a mock for the duration of a mocha * testing suite. */ export default function useMockedPerformance(closure: PerformanceClosure): () => any;