import * as React from 'react'; import Card from './Card'; import CardHole from './CardHole'; import {render} from '@testing-library/react'; import {testA11y} from '../../axe'; describe('Card', () => { it('render', () => { const card = render( This is card top This is card bottom ); expect(card.getByText('This is card top')).toBeTruthy(); expect(card.getByText('This is card bottom')).toBeTruthy(); }); describe('a11y', () => { it('should have no a11y violations', async () => { await testA11y(item); }); }); });