(Component, props = {})
| 4 | import { DropdownContext } from './DropdownContext'; |
| 5 | |
| 6 | export function testForCustomClass(Component, props = {}) { |
| 7 | render(<Component {...props} data-testid="test" className="custom-class" />); |
| 8 | const node = screen.getByTestId('test'); |
| 9 | expect(node).toHaveClass('custom-class'); |
| 10 | } |
| 11 | |
| 12 | export function testForCustomTag(Component, props = {}, tag = 'h1') { |
| 13 | render(<Component {...props} tag={tag} data-testid="test" />); |
no outgoing calls
no test coverage detected
searching dependent graphs…