(Component, className)
| 30 | } |
| 31 | |
| 32 | export function testForDefaultClass(Component, className) { |
| 33 | render(<Component data-testid="test" />); |
| 34 | const node = screen.getByTestId('test'); |
| 35 | expect(node).toHaveClass(className); |
| 36 | } |
| 37 | |
| 38 | export function testForChildrenInComponent(Component) { |
| 39 | render(<Component>Yo!</Component>); |
no outgoing calls
no test coverage detected
searching dependent graphs…