code: function sendResponse(success) {
          success = success || false;
          response.status(200);
          response.contentType('application/json');
          response.send(JSON.stringify({success: success}));
        }
docs: Important, this middleware must always return a response because the ajax call to finalize_build is "async: false" and prevents testem from shutting down the browser until this response.