d2-ui
Version:
22 lines (11 loc) • 409 B
Markdown
as the root node passed into `mount()`.
NOTE: can only be called on a wrapper instance that is also the root instance.
`ReactComponent`: The component instance.
```jsx
const wrapper = mount(<MyComponent />);
const inst = wrapper.instance();
expect(inst).to.be.instanceOf(MyComponent);
```
Gets the instance of the component being rendered