/** * @jest-environment jsdom */ import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import { Button } from '..'; import Gridicon from '../../gridicon'; // eslint-disable-line no-restricted-imports describe( 'Button', () => { describe( 'renders', () => { test( 'with modifiers', () => { render( ); expect( screen.getByRole( 'button' ) ).toContainElement( container.firstChild ); } ); } ); describe( 'with href prop', () => { test( 'renders as a link', () => { render(