We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5bef7c commit edde033Copy full SHA for edde033
lib/reporters/xunit.js
@@ -43,7 +43,7 @@ function XUnit (runner, options) {
43
var tests = [];
44
var self = this;
45
46
- if (options.reporterOptions && options.reporterOptions.output) {
+ if (options && options.reporterOptions && options.reporterOptions.output) {
47
if (!fs.createWriteStream) {
48
throw new Error('file output not supported in browser');
49
}
0 commit comments