I want to write unit test case for below HTML code, but the function is not being called, which is defined with onChange. Can you please help me to learn how to write test case using jest and React-testing-library.
<Ant.Upload
name='files'
fileList={[...selectedFileList]}
accept='.xlsx'
onChange={receiveFile}
showUploadList={false}
customRequest={dummyRequest}
>
<Controls.Icon fa={{ icon: 'upload', weight: 'solid' }} margin={{ leftPx: 10 }} />
</Ant.Upload>