Attempt to backport mocha support https://github.com/angular/angular.js/commit/bbe0a9c862980a3eb5fa583d21efab06bb2f7ed0