Utilising fireEvent
I got it to work with:
const mockFile = new File(['content'], 'filename.txt', { type: 'text/plain' });
const input = screen.getByTestId('file-input') // reference your input HTMLElement here
fireEvent.change(input, { target: { files: [mockFile] } })