import React from 'react'; import { render } from '@testing-library/react-native'; import Icon from '../Icon'; describe('Icon', () => { it.each` element ${()} ${()} ${()} `('renders correctly', async ({ element }) => { const { toJSON } = render(element); expect(toJSON()).toMatchSnapshot(); }); });