@helpscout/cyan
Version:
Cypress-like Testing for React + JSDOM
18 lines (17 loc) • 475 B
TypeScript
import Cyan from '../cyan';
declare class RenderWrapper extends Cyan {
Component: any;
WrappedComponent: any;
initialProps: any;
root: HTMLElement;
constructor(Component: any);
setRootNode(): void;
setComponent(Component: any): void;
mount(Component?: any): this;
setProps(props?: any): this;
setProp(prop: any, value: any): this;
cleanUp(): this;
unmount(): this;
render(props: any): this;
}
export default RenderWrapper;