Module

Enzyme.Full

#ReactWrapper

data ReactWrapper :: Type

Represents an Enzyme wrapper for components that may interact with DOM APIs or that are part of higher order components.

Instances

#mount

mount :: ReactElement -> Effect ReactWrapper

Creates a ReactWrapper from a React element.

#remount

remount :: ReactWrapper -> Effect Unit

A method that re-mounts the component, if it is not currently mounted. This can be used to simulate a component going through an unmount/mount lifecycle.

Modules