MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / Test

Class Test

src/__tests__/render.js:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78 test('supports fragments', () => {
79 class Test extends React.Component {
80 render() {
81 return (
82 <div>
83 <code>DocumentFragment</code> is pretty cool!
84 </div>
85 )
86 }
87 }
88
89 const {asFragment} = render(<Test />)
90 expect(asFragment()).toMatchSnapshot()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…