Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var util = require('util'),

var BrowserStackReporter = function(baseReporter, config, options = {}) {

var _this = this
this.baseReporter = baseReporter
this.config = config
this.options = options
Expand Down Expand Up @@ -69,8 +70,8 @@ var BrowserStackReporter = function(baseReporter, config, options = {}) {
function write(filename, xml) {

var outputDir = "."
if (this.options && typeof this.options.outputDir == 'string') {
outputDir = this.options.outputDir
if (_this.options && typeof _this.options.outputDir == 'string') {
outputDir = _this.options.outputDir
}
outputDir = `${outputDir}/browserstack-reports`

Expand Down