Notes Used to Craft this Lesson
The native file upload option for AdonisJS is to use Drive; outside of AdonisJS, this package is called Flydrive. Like Japa can be used outside of AdonisJS projects, Flydrive is the same. Also, similar to mail and the other first-party AdonisJS packages, Drive comes with fakes and helpful assertions when it comes to testing.
The project we're working on already has Drive installed and configured, and our PostsController contains a simple uploadThumbnail method which we'll be testing here today.