I’m testing React Dropzone and I need to check the onDrop function. This function has two parameters (acceptedFiles and rejectedFiles). I’m mocking the files like this: Then in my test, I do that: This is my onDrop function: The expected result would be that handleOnDrop returns acceptedFiles but returns rejectedFiles and I don’t know why. Mime type it’s ok and