import React from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { axe } from 'jest-axe'; import { Spinner } from '@leafygreen-ui/loading-indicator'; import { getTestUtils } from '../testing'; import { ButtonProps } from '../types'; import Button from '..'; const className = 'test-button-class'; const title = 'Test button title'; const child = 'Button child'; function renderButton(props: ButtonProps = {}) { const utils = render( // @ts-ignore React17 types , ); const button = screen.getByRole('button'); fireEvent.click(button); expect(onSubmit).not.toHaveBeenCalled(); }); }); /* eslint-disable jest/no-disabled-tests*/ describe.skip('types behave as expected', () => { test('does not throw an error when no children are passed to the component', () => {