We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096a23f commit aa8dbc0Copy full SHA for aa8dbc0
lib/_patch/mocha-plugin.js
@@ -20,8 +20,10 @@
20
return test.fullTitle().replace(/#/g, '');
21
}
22
23
- return Mocha.BrowserStack = function(runner, root) {
24
- Mocha.reporters.HTML.call(this, runner, root);
+ var origReporter = mocha._reporter;
+
25
+ Mocha.BrowserStack = function(runner, root) {
26
+ origReporter.apply(this, arguments);
27
28
var count = 1,
29
that = this,
@@ -61,4 +63,8 @@
61
63
BrowserStack.post("/_report", results, function(){});
62
64
});
65
};
66
67
+ Mocha.BrowserStack.prototype = origReporter.prototype;
68
69
+ return Mocha.BrowserStack;
70
})();
0 commit comments