Optional
classClassname that the target elements should have
search(
<button
className="foo bar baz"
>
Test
</button>,
{
className: 'bar',
},
)
Optional
component?: ComponentType of jsx node. E.g.
search(<button>Test</button>, {
component: 'button',
})
search(<MyComponent>Test</MyComponent>, {
component: MyComponent,
})
Optional
props?: Record<string, unknown>Props that the target elements should have
search(
<button type="button">
Test
</button>,
{
type: 'button',
},
)
Generated using TypeDoc
Parameters for searching for elements