I implement this functionality from request-prgress in a Jest test.
var fs = require(\'fs\'); var request = require(\'request\'); var progress = require(\'req