import axe from '../../../../axe-helper'; import React from 'react'; import { render } from '@testing-library/react'; import ErrorMessage from './ErrorMessage'; describe('', () => { it('renders the component with props with no a11y violations', async () => { const { container } = render(Ops error !); expect(container.firstChild).toMatchSnapshot(); const results = await axe(container.innerHTML); expect(results).toHaveNoViolations(); }); });