Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 295 Bytes

instance.md

File metadata and controls

19 lines (10 loc) · 295 Bytes

.instance() => ReactComponent

Returns the wrapper's underlying instance.

Returns

ReactComponent|DOMComponent: The retrieved instance.

Example

const wrapper = mount(<MyComponent />);
const inst = wrapper.instance();
expect(inst).to.be.instanceOf(MyComponent);