(Component, tag)
| 24 | } |
| 25 | |
| 26 | export function testForDefaultTag(Component, tag) { |
| 27 | render(<Component data-testid="test" />); |
| 28 | const node = screen.getByTestId('test'); |
| 29 | expect(node.tagName.toLowerCase()).toMatch(tag); |
| 30 | } |
| 31 | |
| 32 | export function testForDefaultClass(Component, className) { |
| 33 | render(<Component data-testid="test" />); |
no outgoing calls
no test coverage detected
searching dependent graphs…