UNPKG

@shopify/polaris

Version:

Shopify’s product component library

9 lines (8 loc) 765 B
import { ReactWrapper, CommonWrapper } from 'enzyme'; import React from 'react'; import { WithPolarisTestProviderOptions } from '../components'; export declare type AnyWrapper = ReactWrapper<any, any> | CommonWrapper<any, any>; export declare function findByTestID(root: ReactWrapper<any, any>, id: string): ReactWrapper<any, any, React.Component<{}, {}, any>>; export declare function matchByTestID(root: ReactWrapper<any, any>, regexp: RegExp): ReactWrapper<any, any, React.Component<{}, {}, any>>; export declare function trigger(wrapper: AnyWrapper, keypath: string, ...args: any[]): any; export declare function mountWithAppProvider<P>(node: React.ReactElement<P>, context?: WithPolarisTestProviderOptions): ReactWrapper<P, any, React.Component<{}, {}, any>>;