(props)
| 15 | |
| 16 | it('should render custom element', () => { |
| 17 | function Link(props) { |
| 18 | return ( |
| 19 | <a href="/home" {...props}> |
| 20 | {props.children} |
| 21 | </a> |
| 22 | ); |
| 23 | } |
| 24 | render(<Button tag={Link}>Home</Button>); |
| 25 | expect(screen.getByText(/home/i).tagName.toLowerCase()).toBe('a'); |
| 26 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…