import React from 'react'; import { render } from '@testing-library/react-native'; import Badge from '../Badge'; describe('without variants', () => { it.each` variant ${'error'} ${'warning'} ${'success'} ${'info'} `('renders correctly with $variant', async ({ variant }) => { const { toJSON } = render(); expect(toJSON()).toMatchSnapshot(); }); });