I have an app built on Express.js and I\'d like to test the file upload functionality. I\'m trying to reproduce the object parsed to req.files (when using express.bodyParser
You might try using zombie.js https://github.com/assaf/zombie , it creates a virtual browser for testing with basic functionality. It can attach a file to a specific input field and supports cookies and sessions