asFragment method
Returns a DocumentFragment
of your renderedElement.
This can be useful if you need to avoid live bindings and see how your component reacts to events.
See: testing-library.com/docs/react-testing-library/api/#asfragment
Implementation
DocumentFragment asFragment() => _jsRenderResult.asFragment();