UNPKG

693 BTypeScriptView Raw
1import { ReactWrapper, CommonWrapper } from 'enzyme';
2import React from 'react';
3import { act } from 'react-dom/test-utils';
4import { WithPolarisTestProviderOptions } from '../components';
5export { ReactWrapper, act };
6declare type AnyWrapper = ReactWrapper<any, any> | CommonWrapper<any, any>;
7export declare function findByTestID(root: ReactWrapper<any, any>, id: string): ReactWrapper<any, any, React.Component<{}, {}, any>>;
8export declare function trigger(wrapper: AnyWrapper, keypath: string, ...args: any[]): any;
9export declare function mountWithAppProvider<P>(node: React.ReactElement<P>, context?: WithPolarisTestProviderOptions): ReactWrapper<P, any, React.Component<{}, {}, any>>;