import { FileUpload } from '../FileUpload'; import * as React from 'react'; import { render } from '@testing-library/react'; test('simple fileupload', () => { const readStartedHandler = jest.fn(); const readFinishedHandler = jest.fn(); const { asFragment } = render( ); expect(asFragment()).toMatchSnapshot(); });