buildFile = (overrides = {}) => {
  const maxSizeInBytes = 10 * 1024 ** 2
  const {
    name = faker.system.fileName(),
    size = faker.datatype.number({ min: 1024, max: 1024 * 3 }),
    type = MimeType.gif
  } = overrides

  // Allocate an array the given size, but set a reasonable ceiling for testing
  const file = new File(Buffer.alloc(Math.min(size, maxSizeInBytes)), name, {
    type
  })
  return file
}
Builds a `File` object for testing
@param {Pick<File, 'name' | 'size' | 'type'>} overrides Specific `File` properties to override
@returns {File}