import { render } from '@testing-library/react' import Error from './error' test('Error renders', () => { const { container } = render( ) const error = container.firstElementChild! expect(error).toMatchSnapshot() })