Troubleshooting
Creating a Mock FileList in JavaScript
So you have a component in your application that uses a file input to return a FileList and now you want to write some tests for it, there is a problem however, JavaScript doesn’t provide a constructor for FileList’s meaning you can’t do anything along the lines of: Now you Read more…