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

Function WrapperComponent

src/__tests__/render.js:94–96  ·  view source on GitHub ↗
({children})

Source from the content-addressed store, hash-verified

92
93 test('renders options.wrapper around node', () => {
94 const WrapperComponent = ({children}) => (
95 <div data-testid="wrapper">{children}</div>
96 )
97
98 const {container} = render(<div data-testid="inner" />, {
99 wrapper: WrapperComponent,

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…