UNPKG

790 BTypeScriptView Raw
1import type { ReactTestInstance } from 'react-test-renderer';
2import type { DefaultStyle } from './hook/commonTypes';
3declare global {
4 namespace jest {
5 interface Matchers<R> {
6 toHaveAnimatedStyle(style: Record<string, unknown>[] | Record<string, unknown>, config?: {
7 shouldMatchAllProps?: boolean;
8 }): R;
9 }
10 }
11}
12export declare const withReanimatedTimer: (animationTest: () => void) => void;
13export declare const advanceAnimationByTime: (time?: number) => void;
14export declare const advanceAnimationByFrame: (count: number) => void;
15export declare const setUpTests: (userFramerateConfig?: {}) => void;
16export declare const getAnimatedStyle: (component: ReactTestInstance) => DefaultStyle;
17//# sourceMappingURL=jestUtils.d.ts.map
\No newline at end of file