import { render } from '@testing-library/react'; import axe from '../../../../../axe-helper'; import React from 'react'; import { Carousel } from '..'; describe('', () => { it('renders with no a11y violations', async () => { const { container } = render( We check your car and dealership so you can buy with confidence, ); const results = await axe(container.innerHTML); expect(results).toHaveNoViolations(); expect(container).toMatchSnapshot(); }); });