import * as React from 'react'; import { render, cleanup } from '@testing-library/react'; import { axe, toHaveNoViolations } from 'jest-axe'; import { matchers } from 'jest-emotion'; import * as Nav from '../navigation'; import { Header } from './'; import { Logo } from '../logo'; expect.extend(matchers); expect.extend(toHaveNoViolations); const renderLogo = () => ( ); const renderNav = () => ( ); const rederCart = () =>

Hi Mom

describe('
', () => { it('should not have accessibility violations', async done => { const { container, unmount } = render( <>
); const a11yResults = await axe(container); expect(a11yResults).toHaveNoViolations(); cleanup(); unmount(); done(); }); });